mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 12:15:45 +00:00
Frontend: Don't call DoneCurrent if the context isnt already current
This commit is contained in:
parent
c935a1a475
commit
e345e46a98
2 changed files with 13 additions and 2 deletions
|
@ -141,7 +141,7 @@ public:
|
|||
}
|
||||
|
||||
~OpenGLSharedContext() {
|
||||
context->doneCurrent();
|
||||
DoneCurrent();
|
||||
}
|
||||
|
||||
void SwapBuffers() override {
|
||||
|
@ -156,6 +156,9 @@ public:
|
|||
}
|
||||
|
||||
void DoneCurrent() override {
|
||||
if (!is_current) {
|
||||
return;
|
||||
}
|
||||
context->doneCurrent();
|
||||
is_current = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue