Evas gl: Fix texture border drawing

Since the introduction of color spaces other than RGBA8888 in
the GL engines, there was an issue with border images scaled in
GL. The left and right edges were simply not properly copied.

This would then show artifacts when scaling very thin images
(typically 2px wide).
This commit is contained in:
Jean-Philippe Andre 2014-04-17 14:59:52 +09:00
parent 07700a799c
commit 558e7827f1
1 changed files with 2 additions and 2 deletions

View File

@ -1010,7 +1010,7 @@ evas_gl_common_texture_upload(Evas_GL_Texture *tex, RGBA_Image *im, unsigned int
for (i = 0; i < (int)im->cache_entry.h; i++)
{
memcpy(pd, ps, bytes_count);
pd++;
pd += bytes_count;
ps += im->cache_entry.w * bytes_count;
}
// |xxx
@ -1025,7 +1025,7 @@ evas_gl_common_texture_upload(Evas_GL_Texture *tex, RGBA_Image *im, unsigned int
for (i = 0; i < (int)im->cache_entry.h; i++)
{
memcpy(pd, ps, bytes_count);
pd++;
pd += bytes_count;
ps += im->cache_entry.w * bytes_count;
}
// xxx|