Linux OpenGL: Fix gamepad not updating (#474)

This commit is contained in:
goeiecool9999 2022-11-11 08:33:44 +01:00 committed by GitHub
parent 4d68446f14
commit bbd8d6d5ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,15 @@ bool GLCanvas_MakeCurrent(bool padView)
void GLCanvas_SwapBuffers(bool swapTV, bool swapDRC)
{
if (swapTV && sGLTVView)
{
GLCanvas_MakeCurrent(false);
sGLTVView->SwapBuffers();
}
if (swapDRC && sGLPadView)
{
GLCanvas_MakeCurrent(true);
sGLPadView->SwapBuffers();
}
}
GLCanvas_MakeCurrent(false);
}