dotn segv/

SVN revision: 7443
This commit is contained in:
Carsten Haitzler 2003-09-12 04:15:20 +00:00
parent 6deaca40fb
commit b62b8257f0
1 changed files with 4 additions and 0 deletions

View File

@ -77,8 +77,11 @@ evas_gl_common_image_new_from_data(Evas_GL_Context *gc, int w, int h, int *data)
im->im->image->h = h;
im->im->image->data = data;
im->im->image->no_free = 1;
im->gc = gc;
/*
im->cached = 1;
gc->images = evas_list_prepend(gc->images, im);
*/
return im;
}
@ -97,6 +100,7 @@ evas_gl_common_image_new_from_copied_data(Evas_GL_Context *gc, int w, int h, int
}
if (data)
memcpy(im->im->image->data, data, w * h * sizeof(DATA32));
im->gc = gc;
return im;
}