Performance optimizations, reducing redundant GL calls

This commit is contained in:
2013-04-24 15:51:57 -07:00
parent e6207fbb83
commit 0c67ffbbd1
19 changed files with 267 additions and 151 deletions

View File

@@ -113,7 +113,7 @@ void KRTextureCube::resetPoolExpiry()
}
}
void KRTextureCube::bind()
void KRTextureCube::bind(GLuint texture_unit)
{
GLuint handle = getHandle();
GLDEBUG(glBindTexture(GL_TEXTURE_CUBE_MAP, handle));