1
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

Organization

Assert failed: ShaderID is greater than 2^10 を消す

みなさん! cocos2d-x 3.0 使ってますか?

cocos2d-x 3.0 を実行したところ
ログに

Assert failed: ShaderID is greater than 2^10

というのが大量に吐かれて、デバッグしにくい事ありませんか?
どうもこれは、不具合のようです

ので、駆逐しましょう

cocosフレームワーク書き換えるよ

frameworks/cocos2d-x/cocos/2d/renderer/CCQuadCommand.cpp
    //Generate Material ID
    //TODO fix shader ID generation
    CCASSERT(_shader->getProgram() < pow(2,10), "ShaderID is greater than 2^10");
    //TODO fix texture ID generation
    CCASSERT(_textureID < pow(2,18), "TextureID is greater than 2^18");

ここをコメントアウトするだけで

快適なcocos2d-xライフをおくる事が出来ます!

ご武運を!

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
1
Help us understand the problem. What are the problem?