mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Reduce redundant glActiveTexture calls.
--HG-- branch : minor
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user