[MPlayer-cvslog] r27654 - trunk/libvo/gl_common.c

reimar subversion at mplayerhq.hu
Sat Sep 20 21:41:13 CEST 2008


Author: reimar
Date: Sat Sep 20 21:41:13 2008
New Revision: 27654

Log:
Fix glAdjustAlignment parameter in glCreateClearTex

Modified:
   trunk/libvo/gl_common.c

Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c	(original)
+++ trunk/libvo/gl_common.c	Sat Sep 20 21:41:13 2008
@@ -366,7 +366,7 @@ void glCreateClearTex(GLenum target, GLe
   if (!stride) return;
   init = malloc(stride * h);
   memset(init, val, stride * h);
-  glAdjustAlignment(w);
+  glAdjustAlignment(stride);
   glPixelStorei(GL_UNPACK_ROW_LENGTH, w);
   glTexImage2D(target, 0, fmt, w, h, 0, format, type, init);
   glTexParameterf(target, GL_TEXTURE_PRIORITY, 1.0);



More information about the MPlayer-cvslog mailing list