take screenshots from the front buffer, not the back buffer

This commit is contained in:
Glenn Maynard
2005-04-09 05:06:14 +00:00
parent 0ad3daab06
commit 7d06820cdf
+4
View File
@@ -816,6 +816,10 @@ RageSurface* RageDisplay_OGL::CreateScreenshot()
desc.masks[0], desc.masks[1], desc.masks[2], 0 );
FlushGLErrors();
glReadBuffer( GL_FRONT );
AssertNoGLError();
glReadPixels(0, 0, wind->GetVideoModeParams().width, wind->GetVideoModeParams().height, GL_RGBA,
GL_UNSIGNED_BYTE, image->pixels);
AssertNoGLError();