Browse Source

Add workaround for OpenGL drivers which do not support glGetString(GL_SHADING_LANGUAGE_VERSION)

tags/2021-05-28
hogliux 9 years ago
parent
commit
256e66dfa3
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/juce_opengl/opengl/juce_OpenGLContext.cpp

+ 2
- 0
modules/juce_opengl/opengl/juce_OpenGLContext.cpp View File

@@ -468,7 +468,9 @@ public:
nativeContext->setSwapInterval (1);
#if ! JUCE_OPENGL_ES
JUCE_CHECK_OPENGL_ERROR
shadersAvailable = OpenGLShaderProgram::getLanguageVersion() > 0;
clearGLError();
#endif
if (context.renderer != nullptr)


Loading…
Cancel
Save