# HG changeset patch # User reimar # Date 1371063252 0 # Node ID e8640e3f9b7ea658b85ba937373109554747d90e # Parent 96be2eda6b768ac5500c58d8d0006ac312eb8fd8 gl: Ensure gpu_def_sl_program is correctly initialized. diff -r 96be2eda6b76 -r e8640e3f9b7e libvo/gl_common.c --- a/libvo/gl_common.c Wed Jun 12 14:26:15 2013 +0000 +++ b/libvo/gl_common.c Wed Jun 12 18:54:12 2013 +0000 @@ -2171,6 +2171,7 @@ *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 @@ } free(glxstr); + gpu_def_sl_program = 0; gpu_yuv_sl_program = 0; // and inform that reinit is neccessary @@ -2374,6 +2376,7 @@ 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 int setGlWindow_dummy(MPGLContext *ctx) { getFunctions(NULL, NULL); + gpu_def_sl_program = 0; gpu_yuv_sl_program = 0; return SET_WINDOW_OK; }