1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-09-02 09:26:30 -05:00

Frontend: Don't call DoneCurrent if the context isnt already current

This commit is contained in:
James Rowe
2020-03-30 14:52:46 -06:00
parent cf9c94d401
commit f1da3ec584
2 changed files with 13 additions and 2 deletions

View File

@@ -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;
}