We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Texture ID and Program ID exceed the boundaries
Texture ID and Program ID exceed the boundaries
Bug #4552 [Closed]
- Status changed from New to Closed
- Assignee set to dabingnn
Fixed in this patch
https://github.com/cocos2d/cocos2d-x/pull/5977
On some android devices(such as Galaxy S), glGenTextures and glCreateProgram will return an ID which is non repeated random integer.
however, we used Texture ID , blendID together with program ID to generate a 64bit materialID.
TextureID for 32 bit, program id for 10bit. however, the ID generated by openGL will exceed this boundary, we need a mapping between openGL ID and Material ID(used for renderer).