mesa: check for null shader->Source

This commit is contained in:
Brian Paul
2008-07-09 15:54:21 -06:00
parent 811a183a27
commit 64f92e00c8
+3
View File
@@ -2167,6 +2167,9 @@ _slang_compile(GLcontext *ctx, struct gl_shader *shader)
type = SLANG_UNIT_FRAGMENT_SHADER;
}
if (!shader->Source)
return GL_FALSE;
ctx->Shader.MemPool = _slang_new_mempool(1024*1024);
/* XXX temporary hack */