summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-20 19:41:13 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-20 19:41:13 +0000
commit10dc2e14293d1a9102b4d6aede71cfa1002a11b5 (patch)
tree6e5cfab2375e4d718c5e88bd632369bf157510cf /libvo
parent0e99017da985eff9bf9b996ae1268794e6dfa770 (diff)
downloadmpv-10dc2e14293d1a9102b4d6aede71cfa1002a11b5.tar.bz2
mpv-10dc2e14293d1a9102b4d6aede71cfa1002a11b5.tar.xz
Fix glAdjustAlignment parameter in glCreateClearTex
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27654 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/gl_common.c2
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);