summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowseglcontext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/windows/qwindowseglcontext.h')
-rw-r--r--src/plugins/platforms/windows/qwindowseglcontext.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowseglcontext.h b/src/plugins/platforms/windows/qwindowseglcontext.h
index 813c605396..6c4ac08da1 100644
--- a/src/plugins/platforms/windows/qwindowseglcontext.h
+++ b/src/plugins/platforms/windows/qwindowseglcontext.h
@@ -81,14 +81,20 @@ struct QWindowsLibEGL
__eglMustCastToProperFunctionPointerType (EGLAPIENTRY * eglGetProcAddress)(const char *procname);
private:
+#ifndef QT_STATIC
void *resolve(const char *name);
HMODULE m_lib;
+#endif
};
struct QWindowsLibGLESv2
{
bool init();
+#ifndef QT_STATIC
void *moduleHandle() const { return m_lib; }
+#else
+ void *moduleHandle() const { return Q_NULLPTR; }
+#endif
// GL1+GLES2 common
void (APIENTRY * glBindTexture)(GLenum target, GLuint texture);
@@ -239,8 +245,10 @@ struct QWindowsLibGLESv2
void (APIENTRY * glDepthRangef)(GLclampf nearVal, GLclampf farVal);
private:
+#ifndef QT_STATIC
void *resolve(const char *name);
HMODULE m_lib;
+#endif
};
class QWindowsEGLStaticContext : public QWindowsStaticOpenGLContext