Commit 79d102cc by Alexis Hetu Committed by Nicolas Capens

Fixed color clear for non multisampled rendertargets

Bug 27454381 Change-Id: Ie59adfa5e5faf08a09427c993775e7d2892d311b Reviewed-on: https://swiftshader-review.googlesource.com/4913Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent fbe8b75e
......@@ -201,7 +201,7 @@ namespace es2
sw::SliceRect sliceRect;
if(renderTarget[i]->getClearRect(x0, y0, width, height, sliceRect))
{
int depth = renderTarget[i]->getDepth();
int depth = sw::max(renderTarget[i]->getDepth(), 1);
for(sliceRect.slice = 0; sliceRect.slice < depth; ++sliceRect.slice)
{
clear(rgba, FORMAT_A32B32G32R32F, renderTarget[i], sliceRect, rgbaMask);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment