1
0
Fork 0

source/Platform/Win32/Win32GLContext.cpp: in isActive() make sure this function returns false if m_renderContext is null.

This commit is contained in:
Henrik Hautakoski 2023-08-02 22:48:40 +02:00
parent c1f1dd75bd
commit 76aa838e8e

View file

@ -139,7 +139,7 @@ bool Win32GLContext::deactivate()
bool Win32GLContext::isActive() const
{
return ::wglGetCurrentContext() == m_renderContext;
return m_renderContext != NULL && ::wglGetCurrentContext() == m_renderContext;
}
bool Win32GLContext::setSwapInterval(int interval)