diff options
author | Alyssa Milburn | 2014-01-23 22:46:34 +0100 |
---|---|---|
committer | Alyssa Milburn | 2014-01-23 23:00:00 +0100 |
commit | 6927e570bbbd69886b5fe2c2ce484ae236af61db (patch) | |
tree | bba1040586e3451ed05c966559a0451392100778 /backends/platform/android/gfx.cpp | |
parent | aa87af50b21a7ce03433e108b690322d44dbbb45 (diff) | |
download | scummvm-rg350-6927e570bbbd69886b5fe2c2ce484ae236af61db.tar.gz scummvm-rg350-6927e570bbbd69886b5fe2c2ce484ae236af61db.tar.bz2 scummvm-rg350-6927e570bbbd69886b5fe2c2ce484ae236af61db.zip |
ANDROID: Add 32bpp support.
We still prefer 16bpp for performance reasons.
Diffstat (limited to 'backends/platform/android/gfx.cpp')
-rw-r--r-- | backends/platform/android/gfx.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<Graphics::PixelFormat> OSystem_Android::getSupportedFormats() const Common::List<Graphics::PixelFormat> 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 { |