unbind GL_PIXEL_UNPACK_BUFFER_EXT before calling glBitmap!
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 31 Oct 2004 15:27:12 +0000 (15:27 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 31 Oct 2004 15:27:12 +0000 (15:27 +0000)
progs/tests/pbo.c

index 04b77572639ed666c4bb0963c86545d0b43bd26b..a74e8e148b3a2dcfcb395ae16f27627f38d7c7ff 100644 (file)
@@ -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);