mesa: Store gl_shader_stage enum in gl_shader objects.
[mesa.git] / src / glsl / tests / builtin_variable_test.cpp
index 63949ee262ee865aaec0ff6c8c75ce993e0f0643..9b4a097b1e4b1477c482f1a16e48f6699d400e2f 100644 (file)
@@ -65,6 +65,7 @@ common_builtin::SetUp()
 
    this->shader = rzalloc(this->mem_ctx, gl_shader);
    this->shader->Type = this->shader_type;
+   this->shader->Stage = _mesa_shader_enum_to_shader_stage(this->shader_type);
 
    this->state =
       new(mem_ctx) _mesa_glsl_parse_state(&this->ctx, this->shader->Type,