From 5b94159f40fba8edaf15bf8961c479898646eb2d Mon Sep 17 00:00:00 2001 From: dhewg Date: Mon, 14 Mar 2011 18:53:38 +0100 Subject: ANDROID: Clear fake palette after allocating Gets rid of funky gfx artifacts on the overlay --- backends/platform/android/texture.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backends') 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() { -- cgit v1.2.3