Sunday, June 19, 2011

Bands on the background

In andengine standart example you can see bands on the background. The solution of the problem is override onInitDraw when creating Sprite:
 Sprite sprite = new Sprite(0,0,null) { 
        protected void onInitDraw(final GL10 pGL)     {
       super.onInitDraw(pGL);
       GLHelper.enableTextures(pGL);
       GLHelper.enableTexCoordArray(pGL);
       GLHelper.enableDither(pGL);
    }
 };