Frontend: Don't call DoneCurrent if the context isnt already current
This commit is contained in:
parent
cf9c94d401
commit
f1da3ec584
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