Skip to content

Commit

Permalink
win32: map pbo with GL_READ_WRITE
Browse files Browse the repository at this point in the history
  • Loading branch information
OV2 committed Oct 22, 2012
1 parent ac60d91 commit b43623f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win32/COpenGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ void COpenGL::Render(SSurface Src)

if(pboFunctionsLoaded) {
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, drawBuffer);
Dst.Surface = (unsigned char *)glMapBuffer(GL_PIXEL_UNPACK_BUFFER,GL_WRITE_ONLY);
Dst.Surface = (unsigned char *)glMapBuffer(GL_PIXEL_UNPACK_BUFFER,GL_READ_WRITE);
} else {
Dst.Surface = noPboBuffer;
}
Expand Down

0 comments on commit b43623f

Please sign in to comment.