mirror of https://github.com/axmolengine/axmol.git
修复CCTexturePVR创建GLTexture时没有使用GLStateCache导致下一个Sprite::draw的时候可能会使用不正确的纹理
This commit is contained in:
parent
4d3cb57718
commit
b983830bec
|
@ -547,7 +547,7 @@ bool TexturePVR::createGLTexture()
|
|||
glPixelStorei(GL_UNPACK_ALIGNMENT,1);
|
||||
|
||||
glGenTextures(1, &_name);
|
||||
glBindTexture(GL_TEXTURE_2D, _name);
|
||||
ccGLBindTexture2D(_name);
|
||||
|
||||
// Default: Anti alias.
|
||||
if (_numberOfMipmaps == 1)
|
||||
|
|
Loading…
Reference in New Issue