diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-12-08 15:20:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-12-08 15:24:08 +0000 |
commit | 228ae90e9f2726195e48dbb0eba2320b6ead396d (patch) | |
tree | 46156de5e76890d15ee42d73a35ae3faf86b1936 /vcl | |
parent | d0d0d42ac5646640991e015c41bbce7c0e5acb8e (diff) |
model the WinOpenGLContext::isCurrent like the X11OpenGLContext::isCurrent
i.e. if !m_aGLWin.hRC then we're definitely not a current context
Change-Id: Id35f75c19629a17b714edf6aa6628d8f5b2f8ced
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/opengl/win/gdiimpl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/opengl/win/gdiimpl.cxx b/vcl/opengl/win/gdiimpl.cxx index 3f5da83dd84c..483a23352cc7 100644 --- a/vcl/opengl/win/gdiimpl.cxx +++ b/vcl/opengl/win/gdiimpl.cxx @@ -76,7 +76,7 @@ void WinOpenGLContext::resetCurrent() bool WinOpenGLContext::isCurrent() { OpenGLZone aZone; - return wglGetCurrentContext() == m_aGLWin.hRC && + return m_aGLWin.hRC && wglGetCurrentContext() == m_aGLWin.hRC && wglGetCurrentDC() == m_aGLWin.hDC; } |