debug debug debug.. fix :)

SVN revision: 4679
This commit is contained in:
Carsten Haitzler 2001-04-29 02:58:17 +00:00
parent 6cec72cccf
commit 5c5aeb3eeb
1 changed files with 2 additions and 1 deletions

View File

@ -476,8 +476,9 @@ __evas_gl_texture_new(Evas_GL_Window *w, Imlib_Image im, int ix, int iy, int iw,
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
prev_im = imlib_context_get_image();
imlib_context_set_image(im);
data = malloc(tw * th * 4);
im_data = imlib_image_get_data_for_reading_only();
if (!im_data) return tex;
data = malloc(tw * th * 4);
im_w = imlib_image_get_width();
im_h = imlib_image_get_height();
for (ty = 0; ty < ih; ty++)