(shader_glsl.c) Continue with iteration if pass is NULL

This commit is contained in:
twinaphex 2016-09-24 17:04:49 +02:00
parent b5416e4041
commit 764a4319a0

View File

@ -431,6 +431,9 @@ static bool gl_glsl_compile_programs(
struct video_shader_pass *pass = (struct video_shader_pass*)
&glsl->shader->pass[i];
if (!pass)
continue;
/* If we load from GLSLP (CGP),
* load the file here, and pretend
* we were really using XML all along.