Removed gl.bindTexture, so it won't get accidentally used.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-10-21 23:42:09 -03:00
parent 14f1afa446
commit 2222bb37d2
2 changed files with 0 additions and 15 deletions
-9
View File
@@ -566,15 +566,6 @@ void OpenGL::setTextureUnit(int textureunit)
state.curTextureUnit = textureunit;
}
void OpenGL::bindTexture(GLuint texture)
{
if (texture != state.boundTextures[state.curTextureUnit])
{
state.boundTextures[state.curTextureUnit] = texture;
glBindTexture(GL_TEXTURE_2D, texture);
}
}
void OpenGL::bindTextureToUnit(GLuint texture, int textureunit, bool restoreprev)
{
if (texture != state.boundTextures[textureunit])
-6
View File
@@ -348,12 +348,6 @@ public:
**/
void setTextureUnit(int textureunit);
/**
* Helper for binding an OpenGL texture.
* Makes sure we aren't redundantly binding textures.
**/
void bindTexture(GLuint texture);
/**
* Helper for binding a texture to a specific texture unit.
*