diff options
author | Paul Berry <stereotype441@gmail.com> | 2014-01-07 09:00:02 -0800 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2014-02-05 09:01:13 -0800 |
commit | c15064c1691764e858d05065f10007aceec9a7ac (patch) | |
tree | 4c876a76d112773919b80f9755124fd74a472524 /src/glsl | |
parent | d861c2963a0b939709981f39e8268822489db86f (diff) | |
download | external_mesa3d-c15064c1691764e858d05065f10007aceec9a7ac.zip external_mesa3d-c15064c1691764e858d05065f10007aceec9a7ac.tar.gz external_mesa3d-c15064c1691764e858d05065f10007aceec9a7ac.tar.bz2 |
glsl/cs: update main.cpp to use the ".comp" extension for compute shaders.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index afc15cb..864c929 100644 --- a/src/glsl/main.cpp +++ b/src/glsl/main.cpp @@ -364,6 +364,8 @@ main(int argc, char **argv) shader->Type = GL_GEOMETRY_SHADER; else if (strncmp(".frag", ext, 5) == 0) shader->Type = GL_FRAGMENT_SHADER; + else if (strncmp(".comp", ext, 5) == 0) + shader->Type = GL_COMPUTE_SHADER; else usage_fail(argv[0]); shader->Stage = _mesa_shader_enum_to_shader_stage(shader->Type); |