Function ccGLDeleteTextureN

#include <Geode/cocos/shaders/ccGLStateCache.h>voidccGLDeleteTextureN(
_::GLuinttextureUnit
,
_::GLuinttextureId
)

Since v2.1.0

It will delete a given texture. If the texture was bound, it will invalidate the cached for the given texture unit. If CC_ENABLE_GL_STATE_CACHE is disabled, it will call glDeleteTextures() directly.

Examples0