draw: corrections to allow for different cliptest cases
[mesa.git] / src / mesa / main / nvprogram.c
index 100ff2c4ab85d9320850d03834efb0c98704ba23..3a570b7dda666f781f626f052823314c8d38dfd4 100644 (file)
@@ -516,8 +516,10 @@ _mesa_emit_nv_temp_initialization(GLcontext *ctx,
 {
    struct prog_instruction *inst;
    GLuint i;
+   struct gl_shader_compiler_options* options =
+         &ctx->ShaderCompilerOptions[_mesa_program_target_to_index(program->Target)];
 
-   if (!ctx->Shader.EmitNVTempInitialization)
+   if (!options->EmitNVTempInitialization)
       return;
 
    /* We'll swizzle up a zero temporary so we can use it for the