summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Varga <[email protected]>2025-07-02 13:31:29 +0200
committerPeter Varga <[email protected]>2025-07-02 15:31:10 +0200
commit76781b0172fda1cf35d978a5953756d5af88be88 (patch)
treed0be8705bc7fb07423ba436db4c9a5212bf84cb6
parentad86a2ee5e2e77f4805a824122927ecc73e8194d (diff)
Fix -no-opengl buildHEADdev
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 <[email protected]>
-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) {