If the texture is not already bound to texture unit 0, it binds it. If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glBindTexture() directly.
Function ccGLBindTexture2D
#include <Geode/cocos/shaders/ccGLStateCache.h>
GLuinttextureId
)#include <Geode/cocos/shaders/ccGLStateCache.h>
If the texture is not already bound to texture unit 0, it binds it. If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glBindTexture() directly.