# HG changeset patch # User reimar # Date 1100347280 0 # Node ID b7ba9bcd19160e11281e78ad87d7d2a89b5441f4 # Parent 72f8a761e7141316867c735eb7a1b02656a7ddb4 Avoid drawing before transformation matrices are set up. diff -r 72f8a761e714 -r b7ba9bcd1916 libvo/vo_gl2.c --- a/libvo/vo_gl2.c Fri Nov 12 11:15:26 2004 +0000 +++ b/libvo/vo_gl2.c Sat Nov 13 12:01:20 2004 +0000 @@ -794,11 +794,6 @@ gl_set_antialias(0); gl_set_bilinear(1); - drawTextureDisplay (); - - free (ImageData); - ImageData = NULL; - mp_msg(MSGT_VO, MSGL_V, "[gl2] Using image_bpp=%d, image_bytes=%d, isBGR=%d, \n\tgl_bitmap_format=%s, gl_bitmap_type=%s, \n\trgb_size=%d (%d,%d,%d), a_sz=%d, \n\tgl_internal_format=%s\n", image_bpp, image_bytes, image_mode==MODE_BGR, gl_bitmap_format_s, gl_bitmap_type_s, @@ -809,6 +804,11 @@ glClearColor( 0.0f,0.0f,0.0f,0.0f ); glClear( GL_COLOR_BUFFER_BIT ); + drawTextureDisplay (); + + free (ImageData); + ImageData = NULL; + return 0; }