From: Brian Paul Date: Tue, 7 Apr 2009 17:01:15 +0000 (-0600) Subject: glsl: don't optimize program if MESA_GLSL=nopt X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4069447f73b3ee011a4beccc6ffa80cce84fd285;p=mesa.git glsl: don't optimize program if MESA_GLSL=nopt --- diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c index 6348f799aa2..ba2fc4f85c9 100644 --- a/src/mesa/shader/slang/slang_compile.c +++ b/src/mesa/shader/slang/slang_compile.c @@ -2801,7 +2801,8 @@ _slang_compile(GLcontext *ctx, struct gl_shader *shader) shader->CompileStatus = success; if (success) { - if (shader->Pragmas.Optimize) { + if (shader->Pragmas.Optimize && + (ctx->Shader.Flags & GLSL_NO_OPT) == 0) { _mesa_optimize_program(ctx, shader->Program); } }