# HG changeset patch # User reimar # Date 1221939673 0 # Node ID 524f6a87cd2329004cd2f43487f1667960bd5fc8 # Parent 53b5cf466361534b3128eee0f5170384a4d98c70 Fix glAdjustAlignment parameter in glCreateClearTex diff -r 53b5cf466361 -r 524f6a87cd23 libvo/gl_common.c --- a/libvo/gl_common.c Sat Sep 20 17:48:01 2008 +0000 +++ b/libvo/gl_common.c Sat Sep 20 19:41:13 2008 +0000 @@ -366,7 +366,7 @@ 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);