aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-11-13 12:01:20 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-11-13 12:01:20 +0000
commit34065ca6f988da2ceb6dbd4bd8bbe97170eecfb5 (patch)
tree67d5691d35aeee3ea6c4866a3a89ff960fbc2c03
parente006508ab83071d2b538d88fdc52ba85483301d1 (diff)
Avoid drawing before transformation matrices are set up.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13927 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/vo_gl2.c10
1 files changed, 5 insertions, 5 deletions
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;
}