Work around Steam overlay screenshot bug

This commit is contained in:
Jonas Kulla 2014-11-09 06:24:40 +01:00
parent 9506c05ba6
commit 7121b65b44
1 changed files with 6 additions and 0 deletions

View File

@ -508,6 +508,12 @@ struct GraphicsPrivate
void swapGLBuffer() void swapGLBuffer()
{ {
fpsLimiter.delay(); fpsLimiter.delay();
// Steam overlay renderer blindly assumes that the default
// framebuffer is bound at swap time when it ReadPixels's to
// aquire screenshots.
FBO::unbind();
SDL_GL_SwapWindow(threadData->window); SDL_GL_SwapWindow(threadData->window);
++frameCount; ++frameCount;