[MPlayer-cvslog] r31740 - trunk/libvo/vo_gl.c

reimar subversion at mplayerhq.hu
Thu Jul 15 20:36:15 CEST 2010


Author: reimar
Date: Thu Jul 15 20:36:15 2010
New Revision: 31740

Log:
Cosmetics: create luma texture first, then the other textures.

Modified:
   trunk/libvo/vo_gl.c

Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c	Thu Jul 15 20:18:15 2010	(r31739)
+++ trunk/libvo/vo_gl.c	Thu Jul 15 20:36:15 2010	(r31740)
@@ -530,6 +530,11 @@ static int initGl(uint32_t d_width, uint
   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 @@ static int initGl(uint32_t d_width, uint
     }
     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);
 


More information about the MPlayer-cvslog mailing list