Mercurial > mplayer.hg
changeset 13926:b7ba9bcd1916
Avoid drawing before transformation matrices are set up.
author | reimar |
---|---|
date | Sat, 13 Nov 2004 12:01:20 +0000 |
parents | 72f8a761e714 |
children | 26d200cbf307 |
files | libvo/vo_gl2.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
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; }