mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Some work towards OpenGL ES 2+ support for love 0.10.
--HG-- branch : minor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user