source/Platform/Win32/Win32GLContext.cpp: in isActive() make sure this function returns false if m_renderContext is null.
This commit is contained in:
parent
c1f1dd75bd
commit
76aa838e8e
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ bool Win32GLContext::deactivate()
|
||||||
|
|
||||||
bool Win32GLContext::isActive() const
|
bool Win32GLContext::isActive() const
|
||||||
{
|
{
|
||||||
return ::wglGetCurrentContext() == m_renderContext;
|
return m_renderContext != NULL && ::wglGetCurrentContext() == m_renderContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Win32GLContext::setSwapInterval(int interval)
|
bool Win32GLContext::setSwapInterval(int interval)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue