From 417e55254cadeb3db8bd52d051d321d13018e778 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 5 Mar 2011 12:39:35 +0000 Subject: [PATCH] rtlight fix. git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3748 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);