Remove ARB checks in PixelEffect::isSupported().

ARB fragment shaders shouldn't support GLSL 1.2 anyway.
This commit is contained in:
vrld
2012-10-04 17:27:31 +02:00
parent e05e5f1d54
commit c75bc199ae
+3 -2
View File
@@ -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