mirror of
https://github.com/love2d/love.git
synced 2026-08-21 05:00:08 +02:00
Fixed detection for shader support
This commit is contained in:
@@ -629,7 +629,7 @@ std::string Shader::getGLSLVersion()
|
|||||||
const char *tmp = 0;
|
const char *tmp = 0;
|
||||||
|
|
||||||
// GL_SHADING_LANGUAGE_VERSION isn't available in OpenGL < 2.0.
|
// GL_SHADING_LANGUAGE_VERSION isn't available in OpenGL < 2.0.
|
||||||
if (GL_VERSION_2_0 || GLEE_ARB_shading_language_100)
|
if (GLEE_VERSION_2_0 || GLEE_ARB_shading_language_100)
|
||||||
tmp = (const char *) glGetString(GL_SHADING_LANGUAGE_VERSION);
|
tmp = (const char *) glGetString(GL_SHADING_LANGUAGE_VERSION);
|
||||||
|
|
||||||
if (tmp == 0)
|
if (tmp == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user