From 6927e570bbbd69886b5fe2c2ce484ae236af61db Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Thu, 23 Jan 2014 22:46:34 +0100 Subject: ANDROID: Add 32bpp support. We still prefer 16bpp for performance reasons. --- backends/platform/android/gfx.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backends/platform/android/gfx.cpp') diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp index 0ce95a3cfb..9f6c759c75 100644 --- a/backends/platform/android/gfx.cpp +++ b/backends/platform/android/gfx.cpp @@ -94,6 +94,7 @@ Common::List OSystem_Android::getSupportedFormats() const Common::List res; res.push_back(GLES565Texture::pixelFormat()); res.push_back(GLES5551Texture::pixelFormat()); + res.push_back(GLES8888Texture::pixelFormat()); res.push_back(GLES4444Texture::pixelFormat()); res.push_back(Graphics::PixelFormat::createFormatCLUT8()); @@ -147,6 +148,8 @@ void OSystem_Android::initTexture(GLESBaseTexture **texture, *texture = new GLES565Texture(); else if (format_new == GLES5551Texture::pixelFormat()) *texture = new GLES5551Texture(); + else if (format_new == GLES8888Texture::pixelFormat()) + *texture = new GLES8888Texture(); else if (format_new == GLES4444Texture::pixelFormat()) *texture = new GLES4444Texture(); else { -- cgit v1.2.3