Browse Source

Severe case of premature commit-ion.

vrld 13 years ago
parent
commit
e575c86246
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/modules/graphics/opengl/PixelEffect.cpp

+ 2 - 2
src/modules/graphics/opengl/PixelEffect.cpp

@@ -156,7 +156,7 @@ void PixelEffect::unloadVolatile()
 std::string PixelEffect::getGLSLVersion()
 {
 	// GL_SHADING_LANGUAGE_VERSION may not be available in OpenGL < 2.0.
-	const char *tmp = glGetString(GL_SHADING_LANGUAGE_VERSION);
+	const char *tmp = (const char*)glGetString(GL_SHADING_LANGUAGE_VERSION);
 	if (NULL == tmp)
 		return "0.0";
 
@@ -164,7 +164,7 @@ std::string PixelEffect::getGLSLVersion()
 	//   major_number.minor_number
 	// or
 	//   major_number.minor_number.release_number
-	std::string versionString((const char *)glGetString(GL_SHADING_LANGUAGE_VERSION));
+	std::string versionString(tmp);
 	size_t minorEndPos = versionString.find(" ");
 	return versionString.substr(0, minorEndPos);
 }