mirror of https://github.com/axmolengine/axmol.git
Merge pull request #3214 from bmanGH/develop
修复CCTexturePVR创建GLTexture时没有使用GLStateCache
This commit is contained in:
commit
aac1a4c78a
|
@ -547,7 +547,7 @@ bool TexturePVR::createGLTexture()
|
||||||
glPixelStorei(GL_UNPACK_ALIGNMENT,1);
|
glPixelStorei(GL_UNPACK_ALIGNMENT,1);
|
||||||
|
|
||||||
glGenTextures(1, &_name);
|
glGenTextures(1, &_name);
|
||||||
glBindTexture(GL_TEXTURE_2D, _name);
|
ccGLBindTexture2D(_name);
|
||||||
|
|
||||||
// Default: Anti alias.
|
// Default: Anti alias.
|
||||||
if (_numberOfMipmaps == 1)
|
if (_numberOfMipmaps == 1)
|
||||||
|
|
Loading…
Reference in New Issue