Browse Source

Remove some dead code.

--HG--
branch : minor
Alex Szpakowski 5 years ago
parent
commit
8512b1a8f6
2 changed files with 0 additions and 25 deletions
  1. 0 22
      src/modules/graphics/opengl/Shader.cpp
  2. 0 3
      src/modules/graphics/opengl/Shader.h

+ 0 - 22
src/modules/graphics/opengl/Shader.cpp

@@ -756,28 +756,6 @@ void Shader::updateBuiltinUniforms(love::graphics::Graphics *gfx, int viewportW,
 		glUniform4fv(location, 13, (const GLfloat *) &data);
 		glUniform4fv(location, 13, (const GLfloat *) &data);
 }
 }
 
 
-std::string Shader::getGLSLVersion()
-{
-	const char *tmp = (const char *) glGetString(GL_SHADING_LANGUAGE_VERSION);
-
-	if (tmp == nullptr)
-		return "0.0";
-
-	// the version string always begins with a version number of the format
-	//   major_number.minor_number
-	// or
-	//   major_number.minor_number.release_number
-	// we can keep release_number, since it does not affect the check below.
-	std::string versionstring(tmp);
-	size_t minorendpos = versionstring.find(' ');
-	return versionstring.substr(0, minorendpos);
-}
-
-bool Shader::isSupported()
-{
-	return GLAD_ES_VERSION_2_0 || (getGLSLVersion() >= "1.2");
-}
-
 int Shader::getUniformTypeComponents(GLenum type) const
 int Shader::getUniformTypeComponents(GLenum type) const
 {
 {
 	if (getUniformBaseType(type) == UNIFORM_SAMPLER)
 	if (getUniformBaseType(type) == UNIFORM_SAMPLER)

+ 0 - 3
src/modules/graphics/opengl/Shader.h

@@ -69,9 +69,6 @@ public:
 	void updatePointSize(float size);
 	void updatePointSize(float size);
 	void updateBuiltinUniforms(love::graphics::Graphics *gfx, int viewportW, int viewportH);
 	void updateBuiltinUniforms(love::graphics::Graphics *gfx, int viewportW, int viewportH);
 
 
-	static std::string getGLSLVersion();
-	static bool isSupported();
-
 private:
 private:
 
 
 	struct TextureUnit
 	struct TextureUnit