diff --git a/source/Platform/Win32/Win32GLContext.cpp b/source/Platform/Win32/Win32GLContext.cpp index c9b1c25..5a02f8a 100644 --- a/source/Platform/Win32/Win32GLContext.cpp +++ b/source/Platform/Win32/Win32GLContext.cpp @@ -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)