forked from enlightenment/efl
gradients dont crash now. draw funny tho :-P
SVN revision: 31157
This commit is contained in:
parent
8433ddf94a
commit
ebc47059de
|
@ -219,7 +219,7 @@ evas_gl_common_gradient_draw(Evas_GL_Context *gc, Evas_GL_Gradient *gr, int x, i
|
||||||
else
|
else
|
||||||
evas_gl_common_texture_update(gr->tex, im, 0);
|
evas_gl_common_texture_update(gr->tex, im, 0);
|
||||||
|
|
||||||
evas_common_image_free(im);
|
evas_common_image_delete(im);
|
||||||
dc->render_op = op;
|
dc->render_op = op;
|
||||||
dc->clip.use = cuse;
|
dc->clip.use = cuse;
|
||||||
if (!gr->tex) return;
|
if (!gr->tex) return;
|
||||||
|
|
|
@ -385,7 +385,7 @@ evas_gl_common_texture_mipmaps_build(Evas_GL_Texture *tex, RGBA_Image *im, int s
|
||||||
im2->image->data,
|
im2->image->data,
|
||||||
pw, ph);
|
pw, ph);
|
||||||
}
|
}
|
||||||
if (im1 != im) evas_common_image_free(im1);
|
if (im1 != im) evas_common_image_delete(im1);
|
||||||
im1 = NULL;
|
im1 = NULL;
|
||||||
|
|
||||||
im_data = im2->image->data;
|
im_data = im2->image->data;
|
||||||
|
@ -413,7 +413,7 @@ evas_gl_common_texture_mipmaps_build(Evas_GL_Texture *tex, RGBA_Image *im, int s
|
||||||
im1 = im2;
|
im1 = im2;
|
||||||
im2 = NULL;
|
im2 = NULL;
|
||||||
}
|
}
|
||||||
if ((im1 != im) && (im1)) evas_common_image_free(im1);
|
if ((im1 != im) && (im1)) evas_common_image_delete(im1);
|
||||||
tex->have_mipmaps = 1;
|
tex->have_mipmaps = 1;
|
||||||
#ifdef BUILD_MMX
|
#ifdef BUILD_MMX
|
||||||
if (mmx) evas_common_cpu_end_opt();
|
if (mmx) evas_common_cpu_end_opt();
|
||||||
|
|
Loading…
Reference in New Issue