From 1451ba961007ca449fc1f8aa025a639b9ec1c957 Mon Sep 17 00:00:00 2001 From: Themaister Date: Wed, 25 Jan 2012 00:17:00 +0100 Subject: [PATCH] Use ARGB_SCE on PS3. --- gfx/shader_cg.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gfx/shader_cg.c b/gfx/shader_cg.c index 7a7d7f812a..e3dd7275d8 100644 --- a/gfx/shader_cg.c +++ b/gfx/shader_cg.c @@ -450,9 +450,14 @@ static bool load_textures(const char *dir_path, config_file_t *conf) #ifndef __CELLOS_LV2__ glPixelStorei(GL_UNPACK_ALIGNMENT, 4); glPixelStorei(GL_UNPACK_ROW_LENGTH, img.width); -#endif glTexImage2D(GL_TEXTURE_2D, - 0, GL_RGBA, img.width, img.height, 0, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8, img.pixels); + 0, GL_RGBA, img.width, img.height, + 0, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8, img.pixels); +#else + glTexImage2D(GL_TEXTURE_2D, + 0, GL_ARGB_SCE, img.width, img.height, + 0, GL_ARGB_SCE, GL_UNSIGNED_INT_8_8_8_8, img.pixels); +#endif lut_textures_num++;