diff options
author | Kenneth Graunke <[email protected]> | 2012-04-16 14:40:45 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-04-17 16:04:57 -0700 |
commit | 7e35d97a02cf139746ce9e85b78fe0c651139074 (patch) | |
tree | 5fabf27ffc377a59d406cb0ecf629814e844db94 | |
parent | a5e95a419e4f6ad93e35a960113d97ae2de27476 (diff) |
glsl: Make the standalone compiler accept '.glsl' files.
These ought to be treated as 'any stage', but for now, they're just
treated as vertex shaders.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Acked-by: Ian Romanick <[email protected]>
-rw-r--r-- | src/glsl/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index d43bf1a7463..3231b1be936 100644 --- a/src/glsl/main.cpp +++ b/src/glsl/main.cpp @@ -238,7 +238,7 @@ main(int argc, char **argv) usage_fail(argv[0]); const char *const ext = & argv[optind][len - 5]; - if (strncmp(".vert", ext, 5) == 0) + if (strncmp(".vert", ext, 5) == 0 || strncmp(".glsl", ext, 5) == 0) shader->Type = GL_VERTEX_SHADER; else if (strncmp(".geom", ext, 5) == 0) shader->Type = GL_GEOMETRY_SHADER; |