Commit c6d0cc05 authored by dilaroga's avatar dilaroga Committed by Felix Paul Kühne
Browse files

opengl: fixes subtexturing issue on macos.

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <>
parent 9c833b7d
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment