From f1da3ec584e5956c8090ac9a958447e4f5e78da2 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Mon, 30 Mar 2020 14:52:46 -0600 Subject: Frontend: Don't call DoneCurrent if the context isnt already current --- src/yuzu/bootmanager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/yuzu/bootmanager.cpp') diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 4e9ced8ba..eaded2640 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -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; } -- cgit v1.2.3