diff options
author | 2010-07-15 18:36:15 +0000 | |
---|---|---|
committer | 2010-11-02 04:14:44 +0200 | |
commit | 4f15b55c9bb7ba8831eb73114f6d011fe65b40dd (patch) | |
tree | a7e4b9884c1bc282417a09be6b9bbf12c7bd6ec6 | |
parent | 5544c07aabea054590f70ece9af83636c698291c (diff) |
vo_gl: Cosmetics: create luma texture first
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31740 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_gl.c | 9 |
1 files 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); |