forked from enlightenment/efl
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:
parent
07700a799c
commit
558e7827f1
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue