Image (1024 x 512) is bigger than the supported 0 x 0 when upgrade cocos2dx from 2.1.3 to 2.2

And i can not see any texture at all.All the sprites are black.
My game is fine in 2.1.3,but after i upgrade the version to 2.2,it appears the problem.
My environment is :samsung s5830 ,android 2.3.4.

I find
CCLOG ( “cocos2d: WARNING: Image (u x u) is bigger than the supported u x u”, imageWidth, imageHeight, maxTextureSize, maxTextureSize );
in CCTexture2D.cpp

and the maxTextureSize = CCConfiguration::sharedConfiguration()->getMaxTextureSize();
why it is 0 ?

i got the same one.

i find now that the place "director->setOpenGLView(eglView); " to the top at initial,
it works.
my problem is use it before init.

1 Like

@liecut It works!