projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f41cc50
)
add missing glViewport calls
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 11 Apr 2008 15:01:04 +0000
(09:01 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 11 Apr 2008 15:01:04 +0000
(09:01 -0600)
cherry-picked from master
progs/util/showbuffer.c
patch
|
blob
|
history
diff --git
a/progs/util/showbuffer.c
b/progs/util/showbuffer.c
index 17f84dc62bdb9391d78023cd53057caaa89f49cf..b0cedea217c3dba90cde374c241023cbc1016951 100644
(file)
--- 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);