mirror of https://github.com/axmolengine/axmol.git
Merge pull request #6602 from minggo/remove-unneeded-codes
remove unneeded codes
This commit is contained in:
commit
b23056537b
|
@ -520,18 +520,6 @@ void Texture2D::setGLProgram(GLProgram* shaderProgram)
|
|||
_shaderProgram = shaderProgram;
|
||||
}
|
||||
|
||||
void Texture2D::releaseData(void *data)
|
||||
{
|
||||
free(data);
|
||||
}
|
||||
|
||||
void* Texture2D::keepData(void *data, unsigned int length)
|
||||
{
|
||||
CC_UNUSED_PARAM(length);
|
||||
//The texture data mustn't be saved because it isn't a mutable texture.
|
||||
return data;
|
||||
}
|
||||
|
||||
bool Texture2D::hasPremultipliedAlpha() const
|
||||
{
|
||||
return _hasPremultipliedAlpha;
|
||||
|
|
|
@ -203,17 +203,6 @@ public:
|
|||
*/
|
||||
virtual std::string getDescription() const;
|
||||
|
||||
/** These functions are needed to create mutable textures
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
void releaseData(void *data);
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
void* keepData(void *data, unsigned int length);
|
||||
|
||||
/** Initializes with a texture2d with data
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
|
Loading…
Reference in New Issue