[MPlayer-cvslog] r36336 - trunk/libvo/gl_common.c

reimar subversion at mplayerhq.hu
Wed Jun 12 20:54:13 CEST 2013


Author: reimar
Date: Wed Jun 12 20:54:12 2013
New Revision: 36336

Log:
gl: Ensure gpu_def_sl_program is correctly initialized.

Modified:
   trunk/libvo/gl_common.c

Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c	Wed Jun 12 16:26:15 2013	(r36335)
+++ trunk/libvo/gl_common.c	Wed Jun 12 20:54:12 2013	(r36336)
@@ -2171,6 +2171,7 @@ static int setGlWindow_w32(MPGLContext *
     *vinfo = new_vinfo;
     getFunctions(w32gpa, NULL);
 
+    gpu_def_sl_program = 0;
     gpu_yuv_sl_program = 0;
 
     // and inform that reinit is neccessary
@@ -2320,6 +2321,7 @@ static int setGlWindow_x11(MPGLContext *
     }
     free(glxstr);
 
+    gpu_def_sl_program = 0;
     gpu_yuv_sl_program = 0;
 
     // and inform that reinit is neccessary
@@ -2374,6 +2376,7 @@ static int setGlWindow_sdl(MPGLContext *
     return SET_WINDOW_FAILED;
   SDL_GL_LoadLibrary(NULL);
   getFunctions(sdlgpa, NULL);
+  gpu_def_sl_program = 0;
   gpu_yuv_sl_program = 0;
   return SET_WINDOW_OK;
 }
@@ -2601,6 +2604,7 @@ static void swapGlBuffers_egl(MPGLContex
 
 static int setGlWindow_dummy(MPGLContext *ctx) {
   getFunctions(NULL, NULL);
+  gpu_def_sl_program = 0;
   gpu_yuv_sl_program = 0;
   return SET_WINDOW_OK;
 }


More information about the MPlayer-cvslog mailing list