From: Brian Paul Date: Sun, 31 Oct 2004 15:27:12 +0000 (+0000) Subject: unbind GL_PIXEL_UNPACK_BUFFER_EXT before calling glBitmap! X-Git-Tag: mesa-7.8~10400 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6136ea62c40e24bb571105a73eca1f5b1e95318;p=platform%2Fupstream%2Fmesa.git unbind GL_PIXEL_UNPACK_BUFFER_EXT before calling glBitmap! --- diff --git a/progs/tests/pbo.c b/progs/tests/pbo.c index 04b7757..a74e8e1 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);