gl-render-manager: Support scissored clears, as used by the GL backend. Fixes GT.

This commit is contained in:
Henrik Rydgård committed 2018-01-31 17:07:20 +01:00
1 parent 67b8c4527d
commit 5351c9ddb3
7 files changed
+33 -13

No files matched your search

+4 -1
View File
@@ -203,11 +203,14 @@ void GLRenderManager::BindFramebufferAsRenderTarget(GLRFramebuffer *fb, GLRRende
data.clear.clearStencil = clearStencil;
}
if (clearMask) {
data.clear.scissorX = 0;
data.clear.scissorY = 0;
data.clear.scissorW = 0;
data.clear.scissorH = 0;
data.clear.clearMask = clearMask;
data.clear.colorMask = 0xF;
step->commands.push_back(data);
}
curRenderStep_ = step;
// Every step clears this state.