less invasive revert for blue/red swap

This commit is contained in:
hunterk 2016-12-25 20:22:28 -06:00
parent 8a258d2511
commit 5ec5b199f6
2 changed files with 7 additions and 2 deletions

View File

@ -68,7 +68,7 @@ static void gl_size_format(GLint* internalFormat)
#ifdef HAVE_OPENGLES2
*internalFormat = GL_RGBA8_OES;
#else
*internalFormat = GL_RGBA8;
*internalFormat = GL_BGRA_EXT;
#endif
break;
}

View File

@ -121,9 +121,14 @@
#ifndef GL_BGRA8_EXT
#define GL_BGRA8_EXT 0x93A1
#endif
#ifdef IOS
/* Stupid Apple */
#define RARCH_GL_INTERNAL_FORMAT32 GL_RGBA
#else
#define RARCH_GL_INTERNAL_FORMAT32 GL_BGRA_EXT
#endif
#define RARCH_GL_INTERNAL_FORMAT16 GL_RGB
#define RARCH_GL_TEXTURE_TYPE32 GL_RGBA
#define RARCH_GL_TEXTURE_TYPE32 GL_BGRA_EXT
#define RARCH_GL_TEXTURE_TYPE16 GL_RGB
#define RARCH_GL_FORMAT32 GL_UNSIGNED_BYTE
#define RARCH_GL_FORMAT16 GL_UNSIGNED_SHORT_5_6_5