--- /home/reimar/MPlayer-cvs/libvo/vo_gl2.c 2004-07-07 19:05:29.000000000 +0200 +++ vo_gl2.c 2004-07-17 17:10:07.000000000 +0200 0, gl_bitmap_format, gl_bitmap_type, NULL); glGetTexLevelParameteriv - (GL_PROXY_TEXTURE_2D, 0, GL_TEXTURE_INTERNAL_FORMAT, &format); + (GL_PROXY_TEXTURE_2D, 0, GL_TEXTURE_WIDTH, &format); - if (format != gl_internal_format) + if (format <= 0) { mp_msg (MSGT_VO, MSGL_V, "[gl2] Needed texture [%dx%d] too big, trying ", texture_height, texture_width); @@ -189,7 +189,7 @@ } } } - while (format != gl_internal_format && texture_width > 1 && texture_height > 1); + while (format <= 0 && texture_width > 1 && texture_height > 1); texnumx = image_width / texture_width; if ((image_width % texture_width) > 0)