瀏覽代碼

mesa: check for null shader->Source

tags/mesa_20090313
Brian Paul 17 年之前
父節點
當前提交
64f92e00c8
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      src/mesa/shader/slang/slang_compile.c

+ 3
- 0
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 */

Loading…
取消
儲存