Browse Source

mesa: check for null shader->Source

tags/mesa_20090313
Brian Paul 17 years ago
parent
commit
64f92e00c8
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/mesa/shader/slang/slang_compile.c

+ 3
- 0
src/mesa/shader/slang/slang_compile.c 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 */

Loading…
Cancel
Save