Reduce redundant glActiveTexture calls.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-10-21 22:19:16 -03:00
parent b9c01b8674
commit 14f1afa446
11 changed files with 33 additions and 41 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ void SpriteBatch::draw(const Matrix4 &m)
OpenGL::TempTransform transform(gl);
transform.get() *= m;
gl.bindTexture(*(GLuint *) texture->getHandle());
gl.bindTextureToUnit(*(GLuint *) texture->getHandle(), 0, false);
uint32 enabledattribs = ATTRIBFLAG_POS | ATTRIBFLAG_TEXCOORD;