Commits

Alex Szpakowski  committed 02779b8

Don't override texture binding check when calling bindTexture with a texture id of 0

  • Participants
  • Parent commits 9e6915e

Comments (0)

Files changed (1)

File src/modules/graphics/opengl/OpenGL.cpp

 {
 	initializeContext();
 	
-	if (texture != textureUnits[curTextureUnitIndex] || texture == 0)
+	if (texture != textureUnits[curTextureUnitIndex])
 	{
 		textureUnits[curTextureUnitIndex] = texture;
 		glBindTexture(GL_TEXTURE_2D, texture);
 	if (textureunitindex < 0 || (size_t) textureunitindex >= textureUnits.size())
 		throw love::Exception("Invalid texture unit index.");
 	
-	if (texture != textureUnits[textureunitindex] || texture == 0)
+	if (texture != textureUnits[textureunitindex])
 	{
 		int oldtexunitindex = curTextureUnitIndex;
 		setActiveTextureUnit(textureunit);