]> git.sesse.net Git - vlc/commitdiff
Fixed picture_sys_t::texture initialisation with opengl for apple.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 8 Dec 2009 18:25:28 +0000 (19:25 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 8 Dec 2009 18:25:28 +0000 (19:25 +0100)
modules/video_output/opengl.h

index df703794049b0511131c50e61a9572b9ec1e64d0..1ad8cad2561378ece2d5f30be062493d98ccadfd 100644 (file)
@@ -304,8 +304,10 @@ static picture_pool_t *vout_display_opengl_GetPool(vout_display_opengl_t *vgl)
         memset(&rsc, 0, sizeof(rsc));
 #ifdef __APPLE__
         rsc.p_sys = malloc(sizeof(*rsc.p_sys));
-        if (rsc.p_sys)
+        if (rsc.p_sys) {
             rsc.p_sys->vgl = vgl;
+            rsc.p_sys->texture = vgl->texture[i];
+        }
 #endif
         rsc.p[0].p_pixels = vgl->buffer[i];
         rsc.p[0].i_pitch  = vgl->fmt.i_width * vgl->tex_pixel_size;