Some work towards OpenGL ES 2+ support for love 0.10.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2015-01-19 23:32:16 -04:00
parent 1253e3aae1
commit 1124612c1f
12 changed files with 181 additions and 43 deletions
+1 -4
View File
@@ -129,9 +129,6 @@ GLuint Shader::compileCode(ShaderStage stage, const std::string &code)
break;
}
// clear existing errors
while (glGetError() != GL_NO_ERROR);
GLuint shaderid = glCreateShader(glstage);
if (shaderid == 0)
@@ -719,7 +716,7 @@ std::string Shader::getGLSLVersion()
bool Shader::isSupported()
{
return getGLSLVersion() >= "1.2";
return GLAD_ES_VERSION_2_0 || (getGLSLVersion() >= "1.2");
}
int Shader::getUniformTypeSize(GLenum type) const