xuncl / cocos2d-android

Automatically exported from code.google.com/p/cocos2d-android
Other
0 stars 0 forks source link

Dobule Texture2D initialization #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Class Texture2D, line 130 - looks like need remove this call

        if (imageSize.width != width && imageSize.height != height) {
            Bitmap bitmap = Bitmap.createBitmap(width, height,
                    image.hasAlpha() ? Bitmap.Config.ARGB_8888 :
Bitmap.Config.RGB_565);
            Canvas canvas = new Canvas(bitmap);
            canvas.drawBitmap(image, 0, 0, null);
            init(bitmap, imageSize); // HERE! Looks like need remove this call
            image.recycle();
            image = bitmap;
        } 
        init(image, imageSize);

Original issue reported on code.google.com by Yunos...@gmail.com on 20 Jan 2010 at 6:24

GoogleCodeExporter commented 9 years ago
Fixed in the latest build

Original comment by philip.desegur@gmail.com on 26 Jan 2010 at 5:13