We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Reloaded texture is not shown if it has the mipmap.
Reloaded texture is not shown if it has the mipmap.
Bug #2880 [Closed]
- Description updated (diff)
- Assignee set to zhangbin@cocos2d-x.org
- Target version set to 3.0-rc1
- Start date deleted (
2013-10-03)
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset commit:930c7df54cc22ee472e26a6d39f9b35acefe4653.
Status: | Closed | |
---|---|---|
Start date: | ||
Priority: | High | |
Due date: | ||
Assignee: | ||
% Done: | 100% |
|
Category: | all | |
Target version: | 3.0-rc1 |
Steps to reproduce:
1) Load a texture from file.
2) Generate mipmap by calling CCTexture2D::generateMipmap()
3) Force textures to reload. On Android it could be locking-unlocking of the device. However, it’s easier to manually call CCTextureCache::reloadAllTextures().
4) The texture is not shown.
Tested platforms:
The fix is in the attachment. Fix was tested on Android and Windows.
0001-Fixed-reloading-of-the-textures-which-have-mipmaps.patch (2.8 kB) dotsquid, 2013-10-03 19:31