mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Partly fix issue #468: Incorrect(?) detection of shader support.
Still need to figure out if we can use the ARB versions.
This commit is contained in:
@@ -155,9 +155,9 @@ void PixelEffect::unloadVolatile()
|
|||||||
|
|
||||||
std::string PixelEffect::getGLSLVersion()
|
std::string PixelEffect::getGLSLVersion()
|
||||||
{
|
{
|
||||||
// GL_SHADING_LANGUAGE_VERSION is not available in OpenGL < 2.1.
|
// GL_SHADING_LANGUAGE_VERSION may not be available in OpenGL < 2.0.
|
||||||
// Be very pessimistic about the GLSL version in that case.
|
const char *tmp = glGetString(GL_SHADING_LANGUAGE_VERSION);
|
||||||
if (!GLEE_VERSION_2_1)
|
if (NULL == tmp)
|
||||||
return "0.0";
|
return "0.0";
|
||||||
|
|
||||||
// the version string always begins with a version number of the format
|
// the version string always begins with a version number of the format
|
||||||
|
|||||||
Reference in New Issue
Block a user