gradients dont crash now. draw funny tho :-P

SVN revision: 31157
This commit is contained in:
Carsten Haitzler 2007-08-04 07:20:17 +00:00
parent 8433ddf94a
commit ebc47059de
2 changed files with 3 additions and 3 deletions

View File

@ -219,7 +219,7 @@ evas_gl_common_gradient_draw(Evas_GL_Context *gc, Evas_GL_Gradient *gr, int x, i
else
evas_gl_common_texture_update(gr->tex, im, 0);
evas_common_image_free(im);
evas_common_image_delete(im);
dc->render_op = op;
dc->clip.use = cuse;
if (!gr->tex) return;

View File

@ -385,7 +385,7 @@ evas_gl_common_texture_mipmaps_build(Evas_GL_Texture *tex, RGBA_Image *im, int s
im2->image->data,
pw, ph);
}
if (im1 != im) evas_common_image_free(im1);
if (im1 != im) evas_common_image_delete(im1);
im1 = NULL;
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;
im2 = NULL;
}
if ((im1 != im) && (im1)) evas_common_image_free(im1);
if ((im1 != im) && (im1)) evas_common_image_delete(im1);
tex->have_mipmaps = 1;
#ifdef BUILD_MMX
if (mmx) evas_common_cpu_end_opt();