Commit 4069447f authored by Brian Paul's avatar Brian Paul

glsl: don't optimize program if MESA_GLSL=nopt

parent 3e79d650
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment