mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2025-08-04 18:12:25 -07:00
Frontend: Don't call DoneCurrent if the context isnt already current
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user