opengl: Reset OpenGlContext::currentContext() if it's destroyed
GlxContext destructor doesn't reset s_currentContext. BUG: 488830
This commit is contained in:
parent
09b45a9937
commit
cfe5bf2073
1 changed files with 3 additions and 0 deletions
|
@ -104,6 +104,9 @@ OpenGlContext::OpenGlContext(bool EGL)
|
||||||
|
|
||||||
OpenGlContext::~OpenGlContext()
|
OpenGlContext::~OpenGlContext()
|
||||||
{
|
{
|
||||||
|
if (s_currentContext == this) {
|
||||||
|
s_currentContext = nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OpenGlContext::checkTimerQuerySupport() const
|
bool OpenGlContext::checkTimerQuerySupport() const
|
||||||
|
|
Loading…
Reference in a new issue