From 76781b0172fda1cf35d978a5953756d5af88be88 Mon Sep 17 00:00:00 2001 From: Peter Varga Date: Wed, 2 Jul 2025 13:31:29 +0200 Subject: Fix -no-opengl build Amends 18210c251 Make possible to use system EGL instead of ANGLE on Linux Pick-to: 6.10 Change-Id: I67e83f46072d5984ceb140ac4d9cf786b057ee20 Reviewed-by: Allan Sandfeld Jensen --- src/core/ozone/gl_ozone_qt.cpp | 2 ++ 1 file changed, 2 insertions(+) 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( context->getProcAddress("eglGetProcAddress")); } +#endif #if QT_CONFIG(dlopen) if (getProcAddressPtr == nullptr) { -- cgit v1.2.3