mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-07 07:21:18 +12:00
Linux OpenGL: Fix gamepad not updating (#474)
This commit is contained in:
parent
4d68446f14
commit
bbd8d6d5ac
1 changed files with 9 additions and 1 deletions
|
@ -90,7 +90,15 @@ bool GLCanvas_MakeCurrent(bool padView)
|
||||||
void GLCanvas_SwapBuffers(bool swapTV, bool swapDRC)
|
void GLCanvas_SwapBuffers(bool swapTV, bool swapDRC)
|
||||||
{
|
{
|
||||||
if (swapTV && sGLTVView)
|
if (swapTV && sGLTVView)
|
||||||
|
{
|
||||||
|
GLCanvas_MakeCurrent(false);
|
||||||
sGLTVView->SwapBuffers();
|
sGLTVView->SwapBuffers();
|
||||||
|
}
|
||||||
if (swapDRC && sGLPadView)
|
if (swapDRC && sGLPadView)
|
||||||
|
{
|
||||||
|
GLCanvas_MakeCurrent(true);
|
||||||
sGLPadView->SwapBuffers();
|
sGLPadView->SwapBuffers();
|
||||||
|
}
|
||||||
|
|
||||||
|
GLCanvas_MakeCurrent(false);
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue