opengl: Reset OpenGlContext::currentContext() if it's destroyed

GlxContext destructor doesn't reset s_currentContext.

BUG: 488830
This commit is contained in:
Vlad Zahorodnii 2024-06-28 11:24:58 +00:00
parent 09b45a9937
commit cfe5bf2073

View file

@ -104,6 +104,9 @@ OpenGlContext::OpenGlContext(bool EGL)
OpenGlContext::~OpenGlContext()
{
if (s_currentContext == this) {
s_currentContext = nullptr;
}
}
bool OpenGlContext::checkTimerQuerySupport() const