From: Paul Berry Date: Tue, 7 Jan 2014 17:00:02 +0000 (-0800) Subject: glsl/cs: update main.cpp to use the ".comp" extension for compute shaders. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c15064c1691764e858d05065f10007aceec9a7ac;p=mesa.git glsl/cs: update main.cpp to use the ".comp" extension for compute shaders. Reviewed-by: Matt Turner --- diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index afc15cb834f..864c9298865 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);