[MPlayer-cvslog] CVS: main/libvo vo_gl2.c,1.57,1.58

Reimar Döffinger CVS syncmail at mplayerhq.hu
Sat Nov 13 13:01:23 CET 2004


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv29298

Modified Files:
	vo_gl2.c 
Log Message:
Avoid drawing before transformation matrices are set up.


Index: vo_gl2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_gl2.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- vo_gl2.c	5 Nov 2004 13:48:41 -0000	1.57
+++ vo_gl2.c	13 Nov 2004 12:01:20 -0000	1.58
@@ -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;
 }
 




More information about the MPlayer-cvslog mailing list