From: Brian Paul Date: Wed, 9 Jul 2008 21:54:21 +0000 (-0600) Subject: mesa: check for null shader->Source X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64f92e00c8292113f9a6372959febe903af09db6;p=mesa.git mesa: check for null shader->Source --- diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c index 4acbe802d29..ccb04494bf6 100644 --- a/src/mesa/shader/slang/slang_compile.c +++ b/src/mesa/shader/slang/slang_compile.c @@ -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 */