Browse Source

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

--HG--
branch : minor
Alex Szpakowski 8 years ago
parent
commit
2222bb37d2
2 changed files with 0 additions and 15 deletions
  1. 0 9
      src/modules/graphics/opengl/OpenGL.cpp
  2. 0 6
      src/modules/graphics/opengl/OpenGL.h

+ 0 - 9
src/modules/graphics/opengl/OpenGL.cpp

@@ -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])

+ 0 - 6
src/modules/graphics/opengl/OpenGL.h

@@ -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.
 	 *