win32: map pbo with GL_READ_WRITE

This commit is contained in:
OV2 2012-10-22 19:48:01 +02:00
parent ac60d9117e
commit b43623fa7a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}