diff options
Diffstat (limited to 'libvo/gl_common.c')
-rw-r--r-- | libvo/gl_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c index e191f7e6ad..ed31a00ceb 100644 --- a/libvo/gl_common.c +++ b/libvo/gl_common.c @@ -366,7 +366,7 @@ void glCreateClearTex(GLenum target, GLenum fmt, GLenum format, GLenum type, GLi 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); |