mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Re-added "pixeleffect" graphics isSupported string for compatibility
This commit is contained in:
@@ -167,7 +167,7 @@ void ShaderEffect::createProgram(const std::vector<GLuint> &shaderids)
|
||||
glLinkProgram(_program);
|
||||
|
||||
for (it = shaderids.begin(); it != shaderids.end(); ++it)
|
||||
glDeleteShader(*it); // flag shaders for deletion as soon as program object is deleted
|
||||
glDeleteShader(*it); // flag shaders for auto-deletion when program object is deleted
|
||||
|
||||
GLint link_ok;
|
||||
glGetProgramiv(_program, GL_LINK_STATUS, &link_ok);
|
||||
@@ -251,7 +251,6 @@ std::string ShaderEffect::getGLSLVersion()
|
||||
return versionString.substr(0, minorEndPos);
|
||||
}
|
||||
|
||||
|
||||
bool ShaderEffect::isSupported()
|
||||
{
|
||||
return GLEE_VERSION_2_0 && getGLSLVersion() >= "1.2";
|
||||
|
||||
Reference in New Issue
Block a user