From 29d5bb3b96bf9384f8835332c7a5b2b02e2b9170 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 1 Feb 2013 21:21:47 +0000 Subject: [PATCH] gpu: fix compilation on GL ES platforms. --- src/gpu/texture.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpu/texture.cpp b/src/gpu/texture.cpp index 77c2275b..09e08357 100644 --- a/src/gpu/texture.cpp +++ b/src/gpu/texture.cpp @@ -134,11 +134,11 @@ Texture::Texture(ivec2 size, PixelFormat format) { GL_ARGB_SCE, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8, 4 }, { GL_LUMINANCE8, GL_LUMINANCE, GL_UNSIGNED_BYTE, 1 }, #elif defined __native_client__ || defined HAVE_GLES_2X - { GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, 4 }, + { GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, 4 }, /* FIXME: if GL_RGBA is not available, we should advertise * this format as "not available" on this platform. */ - { GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, 4 }, - { GL_R8, GL_R8, GL_UNSIGNED_BYTE, 1 }, + { GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, 4 }, + { GL_LUMINANCE, GL_LUMINANCE, GL_UNSIGNED_BYTE, 1 }, #else /* Seems efficient for little endian textures */ { GL_RGBA8, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8_REV, 4 }, /* ARGB_8 */