diff libvo/vo_gl2.c @ 13926:b7ba9bcd1916

Avoid drawing before transformation matrices are set up.
author reimar
date Sat, 13 Nov 2004 12:01:20 +0000
parents a4a28364b79b
children c4033dcb986f
line wrap: on
line diff
--- 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;
 }