aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authordhewg2011-03-14 18:53:38 +0100
committerdhewg2011-03-14 19:35:36 +0100
commit5b94159f40fba8edaf15bf8961c479898646eb2d (patch)
tree72e9a8680b5a3c6f9d101cbe33aa670dbdf7844c /backends
parentf587b6ee04b18366205277f76c3f048313e971a6 (diff)
downloadscummvm-rg350-5b94159f40fba8edaf15bf8961c479898646eb2d.tar.gz
scummvm-rg350-5b94159f40fba8edaf15bf8961c479898646eb2d.tar.bz2
scummvm-rg350-5b94159f40fba8edaf15bf8961c479898646eb2d.zip
ANDROID: Clear fake palette after allocating
Gets rid of funky gfx artifacts on the overlay
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/android/texture.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/platform/android/texture.cpp b/backends/platform/android/texture.cpp
index bbfd1f0c86..9501d94f48 100644
--- a/backends/platform/android/texture.cpp
+++ b/backends/platform/android/texture.cpp
@@ -480,6 +480,8 @@ GLESFakePaletteTexture::GLESFakePaletteTexture(GLenum glFormat, GLenum glType,
_palette = new uint16[256];
assert(_palette);
+
+ memset(_palette, 0, 256 * 2);
}
GLESFakePaletteTexture::~GLESFakePaletteTexture() {