changeset 31674:4996a06d9844

Cosmetics: create luma texture first, then the other textures.
author reimar
date Thu, 15 Jul 2010 18:36:15 +0000
parents cb6e9b6d8811
children a40db79e6672
files libvo/vo_gl.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);