From cdd3dcae0a37b7aa228701552f96b628434cf733 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sun, 3 Apr 2022 15:44:24 -0700 Subject: [PATCH] Qt: Fix OpenGL-only build (fixes #2492) --- src/platform/qt/DisplayGL.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/qt/DisplayGL.cpp b/src/platform/qt/DisplayGL.cpp index 4bf008982..678f9d612 100644 --- a/src/platform/qt/DisplayGL.cpp +++ b/src/platform/qt/DisplayGL.cpp @@ -460,6 +460,7 @@ void PainterGL::create() { painter->m_gl->swapBuffers(painter->m_surface); painter->makeCurrent(); +#if defined(BUILD_GLES2) || defined(BUILD_GLES3) if (painter->m_widget && painter->supportsShaders()) { QOpenGLFunctions_Baseline* fn = painter->m_gl->versionFunctions(); fn->glFinish(); @@ -469,6 +470,7 @@ void PainterGL::create() { gl2Backend->finalShader.tex = painter->m_finalTex[painter->m_finalTexIdx]; mGLES2ContextUseFramebuffer(gl2Backend); } +#endif }; m_backend->init(m_backend, 0);