mirror of
https://github.com/mpv-player/mpv
synced 2025-03-21 02:41:13 +00:00
Avoid drawing before transformation matrices are set up.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13927 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e006508ab8
commit
34065ca6f9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user