summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_texture.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-07-10 12:01:23 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-07-11 13:41:38 +0900
commit7512a54954710708a771a4a4e6601afcd421323e (patch)
tree252758307a39f9a66a5652ce63096fa29e58b940 /src/modules/evas/engines/gl_common/evas_gl_texture.c
parent24f38eaf6df3081b02b8582ae22e148bec869f52 (diff)
Evas gl: Fix upload of RGB+A textures [INCOMPLETE]
The textures have duplicated borders, take them into account.
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_texture.c5
1 files changed, 5 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 d7bdcac1ed..a5209c3a90 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_texture.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c
@@ -1488,6 +1488,11 @@ evas_gl_common_texture_rgb_a_pair_new(Evas_Engine_GL_Context *gc,
1488 tex = evas_gl_common_texture_alloc(gc, w, h, EINA_TRUE); 1488 tex = evas_gl_common_texture_alloc(gc, w, h, EINA_TRUE);
1489 if (!tex) return NULL; 1489 if (!tex) return NULL;
1490 1490
1491 w += im->cache_entry.borders.l + im->cache_entry.borders.r;
1492 h += im->cache_entry.borders.t + im->cache_entry.borders.b;
1493 tex->x = im->cache_entry.borders.l;
1494 tex->y = im->cache_entry.borders.t;
1495
1491 // Allocate RGB texture normally - as a 'whole' 1496 // Allocate RGB texture normally - as a 'whole'
1492 tex->pt = _pool_tex_new(gc, w, h, 1497 tex->pt = _pool_tex_new(gc, w, h,
1493 *matching_format[lformat].intformat, 1498 *matching_format[lformat].intformat,