# HG changeset patch # User reimar # Date 1279218975 0 # Node ID 4996a06d9844ffcc87e8a142f8574862483862f6 # Parent cb6e9b6d88116830e3c7fb65af87244f704e226b Cosmetics: create luma texture first, then the other textures. diff -r cb6e9b6d8811 -r 4996a06d9844 libvo/vo_gl.c --- a/libvo/vo_gl.c Thu Jul 15 18:18:15 2010 +0000 +++ b/libvo/vo_gl.c Thu Jul 15 18:36:15 2010 +0000 @@ -530,6 +530,11 @@ 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; @@ -567,10 +572,6 @@ } 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);