Work around Steam overlay screenshot bug
This commit is contained in:
parent
9506c05ba6
commit
7121b65b44
|
@ -508,6 +508,12 @@ struct GraphicsPrivate
|
|||
void swapGLBuffer()
|
||||
{
|
||||
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);
|
||||
|
||||
++frameCount;
|
||||
|
|
Loading…
Reference in New Issue