diff options
author | Brian Paul <[email protected]> | 2008-04-11 08:59:05 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-04-11 08:59:39 -0600 |
commit | b69eb0360afbdfe45a895f51e8b9b856e65e4879 (patch) | |
tree | fdbd87a3f79a74cfaac1bc8d10bc449c2c79d320 /progs/util/showbuffer.c | |
parent | 3f4e80c06b5b6efcd540ca5daf734100fad19ff0 (diff) |
add missing glViewport calls
Diffstat (limited to 'progs/util/showbuffer.c')
-rw-r--r-- | progs/util/showbuffer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/util/showbuffer.c b/progs/util/showbuffer.c index 17f84dc62bd..b0cedea217c 100644 --- a/progs/util/showbuffer.c +++ b/progs/util/showbuffer.c @@ -71,6 +71,8 @@ ShowDepthBuffer( GLsizei winWidth, GLsizei winHeight, glPushMatrix(); glLoadIdentity(); + glViewport(0, 0, winWidth, winHeight); + glDisable(GL_STENCIL_TEST); glDisable(GL_DEPTH_TEST); glRasterPos2f(0, 0); @@ -120,6 +122,8 @@ ShowAlphaBuffer( GLsizei winWidth, GLsizei winHeight ) glPushMatrix(); glLoadIdentity(); + glViewport(0, 0, winWidth, winHeight); + glDisable(GL_STENCIL_TEST); glDisable(GL_DEPTH_TEST); glRasterPos2f(0, 0); @@ -170,6 +174,8 @@ ShowStencilBuffer( GLsizei winWidth, GLsizei winHeight, glPushMatrix(); glLoadIdentity(); + glViewport(0, 0, winWidth, winHeight); + glDisable(GL_STENCIL_TEST); glDisable(GL_DEPTH_TEST); glRasterPos2f(0, 0); |