[vlc-commits] opengl: fixes subtexturing issue on macos.
Sebastien Zwickert
git at videolan.org
Fri Sep 9 12:47:17 CEST 2011
vlc | branch: master | Sebastien Zwickert <dilaroga at free.fr> | Thu Sep 8 22:49:51 2011 +0200| [c6d0cc05a0194dfd5ca1f374429ed512e0420d41] | committer: Felix Paul Kühne
opengl: fixes subtexturing issue on macos.
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6d0cc05a0194dfd5ca1f374429ed512e0420d41
---
modules/video_output/opengl.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index e33f7f5..236b0d2 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -448,6 +448,7 @@ static int PictureLock(picture_t *picture)
vout_display_opengl_t *vgl = picture->p_sys->vgl;
if (!vlc_gl_Lock(vgl->gl)) {
glBindTexture(vgl->tex_target, PictureGetTexture(picture));
+ glPixelStorei(GL_UNPACK_ROW_LENGTH, picture->p->i_pitch / picture->p->i_pixel_pitch);
glTexSubImage2D(vgl->tex_target, 0,
0, 0, vgl->fmt.i_width, vgl->fmt.i_height,
vgl->tex_format, vgl->tex_type, picture->p[0].p_pixels);
More information about the vlc-commits
mailing list