summaryrefslogtreecommitdiff
path: root/retrace
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-04-23 11:41:06 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-04-23 16:44:23 +0100
commit3296e7763a74186a6867bc499b45a50ddf6ba121 (patch)
tree940de3a62659c21ac73cafdfee41508d9336881d /retrace
parentef194d09b119abb1193fc00ed78081ae5b83abbb (diff)
glstate: Disable scissor test inside downsampledFramebuffer.
Diffstat (limited to 'retrace')
-rw-r--r--retrace/glstate_images.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/retrace/glstate_images.cpp b/retrace/glstate_images.cpp
index 01c41c5b..79b39882 100644
--- a/retrace/glstate_images.cpp
+++ b/retrace/glstate_images.cpp
@@ -1052,12 +1052,16 @@ downsampledFramebuffer(Context &context,
{
GLuint fbo;
-
*numRbs = 0;
glGenFramebuffers(1, &fbo);
glBindFramebuffer(GL_FRAMEBUFFER, fbo);
+ GLboolean scissor_test = glIsEnabled(GL_SCISSOR_TEST);
+ if (scissor_test) {
+ glDisable(GL_SCISSOR_TEST);
+ }
+
{
// color buffer
glGenRenderbuffers(1, &rbs[*numRbs]);
@@ -1127,6 +1131,10 @@ downsampledFramebuffer(Context &context,
}
}
+ if (scissor_test) {
+ glEnable(GL_SCISSOR_TEST);
+ }
+
return fbo;
}