summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_texture.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-10-18 12:49:11 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-10-18 12:49:11 +0900
commit7b568a61529e2f96882e0bfe9ba21edf35e40766 (patch)
treef66c7b944bae55f6f9405dd394d481573059fd14 /src/modules/evas/engines/gl_common/evas_gl_texture.c
parent94ebd96df509c36a8d0d12b3e5c9befbf0287441 (diff)
evas gl fix color on bigendian with gl engine
this fixes rendering on ppc (bigendian) where we have thnigs swizzled oddly. not bgra -> argb but rgba -> grab ... so generate a bigendian shader file and use if on bigendian. this should fix T2721 it fixes it in the visual screenshots i can get remotely.
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_texture.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_texture.c b/src/modules/evas/engines/gl_common/evas_gl_texture.c
index f0eb72264b..b848c68c9a 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_texture.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c
@@ -10,12 +10,20 @@ static const GLenum bgr_fmt = GL_BGRA;
10static const GLenum bgr_ifmt = GL_BGRA; 10static const GLenum bgr_ifmt = GL_BGRA;
11#else 11#else
12static const GLenum rgb_fmt = GL_RGBA; 12static const GLenum rgb_fmt = GL_RGBA;
13#ifdef WORDS_BIGENDIAN
14static const GLenum rgb_ifmt = GL_RGBA;
15#else
13static const GLenum rgb_ifmt = GL_RGB; 16static const GLenum rgb_ifmt = GL_RGB;
17#endif
14static const GLenum bgra_fmt = GL_BGRA; 18static const GLenum bgra_fmt = GL_BGRA;
15static const GLenum bgra_ifmt = GL_RGBA; 19static const GLenum bgra_ifmt = GL_RGBA;
16static const GLenum bgr_fmt = GL_BGRA; 20static const GLenum bgr_fmt = GL_BGRA;
21#ifdef WORDS_BIGENDIAN
22static const GLenum bgr_ifmt = GL_RGBA;
23#else
17static const GLenum bgr_ifmt = GL_RGB; 24static const GLenum bgr_ifmt = GL_RGB;
18#endif 25#endif
26#endif
19 27
20#ifdef GL_GLES 28#ifdef GL_GLES
21static const GLenum alpha_fmt = GL_ALPHA; 29static const GLenum alpha_fmt = GL_ALPHA;