Try to prevent null pointer dereference

This commit is contained in:
twinaphex 2017-04-28 12:07:11 +02:00
parent 9812dfb4d4
commit 9e7ac432c3

View File

@ -1045,7 +1045,7 @@ static void gl_glsl_set_uniform_parameter(
GLint location = 0;
glsl_shader_data_t *glsl = (glsl_shader_data_t*)data;
if (!param)
if (!glsl || !param)
return;
if (param->lookup.enable)