summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-07-09 15:58:31 -0600
committerBrian Paul <[email protected]>2008-07-14 08:13:52 -0600
commit62db707a3dd4bf821b189e937fa133009007a2b5 (patch)
treedfd8cf1462bcc997160f871f62e1ee20bc00ae58 /src/mesa/shader
parent5e600209f4908ece2ba8b7f880e1d7e950d2cfb4 (diff)
mesa: check for null shader->Source
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/slang/slang_compile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c
index 75d1d7621d7..e02331b973a 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 */