1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Fix screenshot read.

This commit is contained in:
Sergey Lipskiy 2013-12-03 22:06:01 +07:00
parent 8e2707c419
commit 0da20b5062

View File

@ -1072,6 +1072,7 @@ void OGL_SaveScreenshot()
GLint oldMode;
glGetIntegerv( GL_READ_BUFFER, &oldMode );
ogl_glBindFramebuffer(GL_READ_FRAMEBUFFER, 0);
glReadBuffer( GL_FRONT );
glReadPixels( 0, OGL.heightOffset, OGL.width, OGL.height, GL_BGR_EXT, GL_UNSIGNED_BYTE, pixelData );
glReadBuffer( oldMode );