diff options
author | Paul Berry <[email protected]> | 2014-01-07 10:58:56 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2014-01-08 07:31:28 -0800 |
commit | 65511e5f22e2ba0a5ebd9210319a55d80ea5334e (patch) | |
tree | c53c382d8a27d392053524491f708499556e59d6 /src/glsl/main.cpp | |
parent | 1722f5e73ee73e7c2ab58a4be39c95c2a55b154f (diff) |
mesa: Store gl_shader_stage enum in gl_shader objects.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/main.cpp')
-rw-r--r-- | src/glsl/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index 2f59848adbf..3260c44710f 100644 --- a/src/glsl/main.cpp +++ b/src/glsl/main.cpp @@ -362,6 +362,7 @@ main(int argc, char **argv) shader->Type = GL_FRAGMENT_SHADER; else usage_fail(argv[0]); + shader->Stage = _mesa_shader_enum_to_shader_stage(shader->Type); shader->Source = load_text_file(whole_program, argv[optind]); if (shader->Source == NULL) { |