evas/evas_engine - patched by Seung-Soo Woo <om101.woo@samsung.com>

Dear all,

eng_image_stride_get() of gl backend get fault stride value.
In case of using dynamic image, it get from dyn.w*4.
But, dyn.stride was already got from secsym_eglGetImageAttribSEC() in _pool_tex_dynamic_new().
dyn.stride can be changed according to DDK.
So, the stride needs to get from dyn.stride.

Please find enclosed file.

Thanks.



SVN revision: 61463
This commit is contained in:
ChunEon Park 2011-07-18 05:32:06 +00:00
parent 656fc3cd99
commit 5440167a6d
1 changed files with 3 additions and 5 deletions

View File

@ -2051,12 +2051,10 @@ eng_image_stride_get(void *data __UNUSED__, void *image, int *stride)
{
Evas_GL_Image *im = image;
*stride = im->w * 4;
if ((im->tex) && (im->tex->pt->dyn.img))
{
*stride = im->tex->pt->dyn.w * 4;
// FIXME: for other image formats (yuv etc.) different stride needed
}
*stride = im->tex->pt->dyn.stride;
else
*stride = im->w * 4;
}
static void