From d64c4277b4d8d83dac13ca9b3fad5ba91bfa2246 Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 12 Jul 2021 12:13:16 +0100 Subject: [PATCH] OpenGL: Reinstate ifdef which was removed accidentally --- modules/juce_opengl/opengl/juce_OpenGLContext.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/juce_opengl/opengl/juce_OpenGLContext.cpp b/modules/juce_opengl/opengl/juce_OpenGLContext.cpp index b14bff59a0..532e8583ad 100644 --- a/modules/juce_opengl/opengl/juce_OpenGLContext.cpp +++ b/modules/juce_opengl/opengl/juce_OpenGLContext.cpp @@ -544,9 +544,11 @@ public: nativeContext->setSwapInterval (1); + #if ! JUCE_OPENGL_ES JUCE_CHECK_OPENGL_ERROR shadersAvailable = OpenGLShaderProgram::getLanguageVersion() > 0; clearGLError(); + #endif textureNpotSupported = contextHasTextureNpotFeature();