summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/ozone/gl_ozone_qt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/ozone/gl_ozone_qt.cpp b/src/core/ozone/gl_ozone_qt.cpp
index 2a9bd18b7..bde607150 100644
--- a/src/core/ozone/gl_ozone_qt.cpp
+++ b/src/core/ozone/gl_ozone_qt.cpp
@@ -155,11 +155,13 @@ bool GLOzoneEGLQt::LoadGLES2Bindings(const gl::GLImplementationParts & /*impleme
{
gl::GLGetProcAddressProc getProcAddressPtr = nullptr;
+#if QT_CONFIG(opengl) && QT_CONFIG(egl)
if (OzoneUtilQt::usingEGL()) {
QOpenGLContext *context = OzoneUtilQt::getQOpenGLContext();
getProcAddressPtr = reinterpret_cast<gl::GLGetProcAddressProc>(
context->getProcAddress("eglGetProcAddress"));
}
+#endif
#if QT_CONFIG(dlopen)
if (getProcAddressPtr == nullptr) {