diff --git a/engine/gl/gl_shader.c b/engine/gl/gl_shader.c index 55f390020..fc02140f9 100644 --- a/engine/gl/gl_shader.c +++ b/engine/gl/gl_shader.c @@ -1397,7 +1397,7 @@ static void Shader_SLProgramName (shader_t *shader, shaderpass_t *pass, char **p *ptr = end+1;/*skip over it all*/ shader->prog = malloc(sizeof(*shader->prog)); - memset(shader->prog, 0, sizeof(shader->prog)); + memset(shader->prog, 0, sizeof(*shader->prog)); shader->prog->refs = 1; Shader_LoadPermutations(shader->prog, programbody, qrtype);