Skip to content

Commit 152ce27

Browse files
committed
Update how we access OpenGL context
1 parent 8f88d13 commit 152ce27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/opengl/gl_api.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ void* GetProcAddress_Qt(const char *name)
3232
void* p = (void*)QOpenGLContext::currentContext()->getProcAddress(QByteArray((const char*)name));
3333
if (!p) {
3434
#if defined(Q_OS_WIN) && defined(QT_OPENGL_DYNAMIC)
35-
HMODULE handle = (HMODULE)QOpenGLContext::openGLModuleHandle();
35+
using namespace QNativeInterface;
36+
HMODULE handle = QWGLContext::openGLModuleHandle();
3637
if (handle)
3738
p = (void*)GetProcAddress(handle, name);
3839
#endif

0 commit comments

Comments
 (0)