mirror of
https://github.com/izzy2lost/WeeU.git
synced 2026-07-06 00:19:59 -07:00
Linux OpenGL: Fix gamepad not updating (#474)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user