diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-04-11 09:01:04 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-04-11 09:01:04 -0600 |
commit | e1c35601529d396dcaa75523fe16114c25221a40 (patch) | |
tree | d44d68ba37723b8723bf5a8d0b8b82240b0f4d18 /progs | |
parent | f41cc50ef063e9a56dc2d0fc6564a0c0f4344b83 (diff) |
add missing glViewport calls
cherry-picked from master
Diffstat (limited to 'progs')
-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 17f84dc62b..b0cedea217 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); |