[vlc-devel] commit: Fixed picture_sys_t::texture initialisation with opengl for apple. (Laurent Aimar )

git version control git at videolan.org
Tue Dec 8 19:26:12 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Dec  8 19:25:28 2009 +0100| [bdf64f4edda056324704a58d3331e97dd4eed531] | committer: Laurent Aimar 

Fixed picture_sys_t::texture initialisation with opengl for apple.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bdf64f4edda056324704a58d3331e97dd4eed531
---

 modules/video_output/opengl.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/opengl.h b/modules/video_output/opengl.h
index df70379..1ad8cad 100644
--- a/modules/video_output/opengl.h
+++ b/modules/video_output/opengl.h
@@ -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;




More information about the vlc-devel mailing list