summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-10-31 15:27:12 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-10-31 15:27:12 +0000
commitc6136ea62c40e24bb571105a73eca1f5b1e95318 (patch)
tree04b7e44e774ec453c5463aee927a110b4eb70285 /progs
parent7eab337d9c85105ee18a4b5b3ba7b070d5857840 (diff)
unbind GL_PIXEL_UNPACK_BUFFER_EXT before calling glBitmap!
Diffstat (limited to 'progs')
-rw-r--r--progs/tests/pbo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/tests/pbo.c b/progs/tests/pbo.c
index 04b77572639..a74e8e148b3 100644
--- a/progs/tests/pbo.c
+++ b/progs/tests/pbo.c
@@ -103,6 +103,7 @@ Display( void )
/*** Draw from the DrawPBO */
glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT, DrawPBO);
glDrawPixels(ImgWidth, ImgHeight, ImgFormat, GL_UNSIGNED_BYTE, 0);
+ glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT, 0);
/* do readpixels, drawpixels */
glRasterPos2i(BPosX, 5);
@@ -138,6 +139,7 @@ Display( void )
/*** draw from the Temp PBO */
glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT, TempPBO);
glDrawPixels(ImgWidth, ImgHeight, ReadFormat, ReadType, 0);
+ glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT, 0);
/* do copypixels */
glRasterPos2i(CPosX, 5);