added releaseGLTexture to release only the glTexture but leave the rest of the texture object intact. Needed to reload cached textures

This commit is contained in:
Dale Stammen 2014-06-12 16:28:38 -07:00
parent 2c5b449c9c
commit 49a94a20ef
1 changed files with 6 additions and 0 deletions

View File

@ -203,6 +203,12 @@ public:
*/
virtual std::string getDescription() const;
/** release only the gl texture.
* @js NA
* @lua NA
*/
void releaseGLTexture();
/** Initializes with a texture2d with data
* @js NA
* @lua NA