From 4f15b55c9bb7ba8831eb73114f6d011fe65b40dd Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 15 Jul 2010 18:36:15 +0000 Subject: [PATCH] vo_gl: Cosmetics: create luma texture first git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31740 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_gl.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index 442ad9f147..236e69eda7 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -549,6 +549,11 @@ static int initGl(uint32_t d_width, uint32_t d_height) { mp_msg(MSGT_VO, MSGL_V, "[gl] Creating %dx%d texture...\n", texture_width, texture_height); + glCreateClearTex(gl_target, gl_texfmt, gl_format, gl_type, scale_type, + texture_width, texture_height, 0); + if (mipmap_gen) + mpglTexParameteri(gl_target, GL_GENERATE_MIPMAP, GL_TRUE); + if (is_yuv) { int i; int xs, ys; @@ -586,10 +591,6 @@ static int initGl(uint32_t d_width, uint32_t d_height) { } update_yuvconv(); } - glCreateClearTex(gl_target, gl_texfmt, gl_format, gl_type, scale_type, - texture_width, texture_height, 0); - if (mipmap_gen) - mpglTexParameteri(gl_target, GL_GENERATE_MIPMAP, GL_TRUE); resize(d_width, d_height); -- 2.11.4.GIT