From 34065ca6f988da2ceb6dbd4bd8bbe97170eecfb5 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 13 Nov 2004 12:01:20 +0000 Subject: Avoid drawing before transformation matrices are set up. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13927 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_gl2.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libvo') diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c index 3630ad26e3..fe3815b48e 100644 --- a/libvo/vo_gl2.c +++ b/libvo/vo_gl2.c @@ -794,11 +794,6 @@ static int initGl(uint32_t d_width, uint32_t d_height) 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 @@ static int initGl(uint32_t d_width, uint32_t d_height) glClearColor( 0.0f,0.0f,0.0f,0.0f ); glClear( GL_COLOR_BUFFER_BIT ); + drawTextureDisplay (); + + free (ImageData); + ImageData = NULL; + return 0; } -- cgit v1.2.3