Przeglądaj źródła

mesa: check for null shader->Source

tags/mesa_20090313
Brian Paul 17 lat temu
rodzic
commit
64f92e00c8
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3
    0
      src/mesa/shader/slang/slang_compile.c

+ 3
- 0
src/mesa/shader/slang/slang_compile.c Wyświetl plik

@@ -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 */

Ładowanie…
Anuluj
Zapisz