While running the app TestCpp on Motorola Milestone 3, it tells me message like this:
cocos2d: ERROR: Failed to compile shader:
// some source code printed here
cocos2d Compile failed.
Attachment is the detail logcat info.
I have tried these versions of cocos2d-x:
All these versions show me the error “shader compile failed”.
However, the app TestCpp run OK on HTC G7 and some other phones.
Finally, I tried the version of cocos2d-2.0-x-2.0.4, the app run OK on Motorola Milestone 3. There is no message like “shader compile failed”.
But it comes out some other error like “OpenGL error”.
Here is another topic about same error of “shader compile failed”. He used cocos2d-2.1beta3-x-2.1.1
Then, I searched the code, and found the source printed at logcat is in file:
libcocos2d/shaders/CCGLProgram.cpp // line 144-174
libcocos2d/shaders/ccShader_PositionTextureColorAlphaTest_frag.h // line 24-48
It seems that shader initialize failed on Motorola Milestone 3.
CompileFailed0.png (95.3 KB)