Remove some dead code.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2019-11-18 21:16:51 -04:00
parent 3435a6bcbf
commit 8512b1a8f6
2 changed files with 0 additions and 25 deletions
-22
View File
@@ -756,28 +756,6 @@ void Shader::updateBuiltinUniforms(love::graphics::Graphics *gfx, int viewportW,
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
{
if (getUniformBaseType(type) == UNIFORM_SAMPLER)
-3
View File
@@ -69,9 +69,6 @@ public:
void updatePointSize(float size);
void updateBuiltinUniforms(love::graphics::Graphics *gfx, int viewportW, int viewportH);
static std::string getGLSLVersion();
static bool isSupported();
private:
struct TextureUnit