Projects > cpp > Issues > Bug #4552

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Texture ID and Program ID exceed the boundaries

Bug #4552 [Closed]
dabingnn 2014-03-25 06:20 . Updated over 2 years ago

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).

zhangxm 2014-03-28 08:36
  • Status changed from New to Closed
  • Assignee set to dabingnn

Atom PDF

Start date:2014-03-25
Due date:
% Done:


Target version:3.0-rc1

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.