From 65511e5f22e2ba0a5ebd9210319a55d80ea5334e Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Tue, 7 Jan 2014 10:58:56 -0800 Subject: mesa: Store gl_shader_stage enum in gl_shader objects. Reviewed-by: Brian Paul Reviewed-by: Kenneth Graunke --- src/glsl/standalone_scaffolding.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/glsl/standalone_scaffolding.cpp') diff --git a/src/glsl/standalone_scaffolding.cpp b/src/glsl/standalone_scaffolding.cpp index 73dfe5c38be..6a717458e60 100644 --- a/src/glsl/standalone_scaffolding.cpp +++ b/src/glsl/standalone_scaffolding.cpp @@ -76,6 +76,7 @@ _mesa_new_shader(struct gl_context *ctx, GLuint name, GLenum type) shader = rzalloc(NULL, struct gl_shader); if (shader) { shader->Type = type; + shader->Stage = _mesa_shader_enum_to_shader_stage(type); shader->Name = name; shader->RefCount = 1; } -- cgit v1.2.3