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

Jindrich Makovicka makovick at gmail.com
Mon Jul 3 21:20:57 CEST 2006


On Sat,  1 Jul 2006 12:58:32 +0200 (CEST)
reimar <subversion at mplayerhq.hu> wrote:

> Author: reimar
> Date: Sat Jul  1 12:58:32 2006
> New Revision: 18876
> 
> Modified:
>    trunk/libvo/vo_gl.c
> 
> Log:
> Make sure all texture units have a different texture bound.
> Should fix weird behaviour with e.g. yuv=4:lscale=1

This commit introduced a weird behavior with yuv=*:rectangle=1. The
following seems to fix it for me.

--- vo_gl.c	(revision 18891)
+++ vo_gl.c	(working copy)
@@ -265,8 +265,7 @@
     default_texs[7] = 0;
     for (i = 0; i < 7; i++) {
       ActiveTexture(GL_TEXTURE1 + i);
-      BindTexture(GL_TEXTURE_2D, default_texs[i]);
-      BindTexture(GL_TEXTURE_RECTANGLE, default_texs[i]);
+      BindTexture(gl_target, default_texs[i]);
       BindTexture(GL_TEXTURE_3D, default_texs[i]);
     }
     ActiveTexture(GL_TEXTURE1);

-- 
Jindrich Makovicka



More information about the MPlayer-cvslog mailing list