From 35792721e5f3925e43614b5e241cbc3b42f78812 Mon Sep 17 00:00:00 2001 From: Logan McNaughton Date: Fri, 30 Dec 2016 21:14:30 -0700 Subject: [PATCH] Attempt to fix some issues with BGRA textures --- gfx/common/gl_common.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gfx/common/gl_common.c b/gfx/common/gl_common.c index b54b414524..9328ad5986 100644 --- a/gfx/common/gl_common.c +++ b/gfx/common/gl_common.c @@ -71,11 +71,6 @@ static void gl_size_format(GLint* internalFormat) *internalFormat = GL_RGBA8; #endif break; -#ifdef HAVE_OPENGLES2 - case GL_BGRA_EXT: - *internalFormat = GL_BGRA8_EXT; - break; -#endif } #endif } @@ -94,7 +89,7 @@ void gl_load_texture_image(GLenum target, { #ifndef HAVE_PSGL #ifdef HAVE_OPENGLES2 - if (gl_check_capability(GL_CAPS_TEX_STORAGE_EXT)) + if (gl_check_capability(GL_CAPS_TEX_STORAGE_EXT) && internalFormat != GL_BGRA_EXT) { gl_size_format(&internalFormat); glTexStorage2DEXT(target, 1, internalFormat, width, height);