diff --git a/src/modules/graphics/opengl/PixelEffect.cpp b/src/modules/graphics/opengl/PixelEffect.cpp index 554e16766..8e570fb27 100644 --- a/src/modules/graphics/opengl/PixelEffect.cpp +++ b/src/modules/graphics/opengl/PixelEffect.cpp @@ -160,15 +160,16 @@ std::string PixelEffect::getGLSLVersion() // major_number.minor_number // or // major_number.minor_number.release_number + // we can keep release_number, since it does not affect the check below. std::string versionString(tmp); - size_t minorEndPos = versionString.find(" "); + size_t minorEndPos = versionString.find(' '); return versionString.substr(0, minorEndPos); } bool PixelEffect::isSupported() { - return (GLEE_VERSION_2_0 || (GLEE_ARB_shader_objects && GLEE_ARB_fragment_shader)) && getGLSLVersion() >= "1.2"; + return GLEE_VERSION_2_0 && getGLSLVersion() >= "1.2"; } std::string PixelEffect::getWarnings() const