projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d861c29
)
glsl/cs: update main.cpp to use the ".comp" extension for compute shaders.
author
Paul Berry
<stereotype441@gmail.com>
Tue, 7 Jan 2014 17:00:02 +0000
(09:00 -0800)
committer
Paul Berry
<stereotype441@gmail.com>
Wed, 5 Feb 2014 17:01:13 +0000
(09:01 -0800)
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/main.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/main.cpp
b/src/glsl/main.cpp
index afc15cb834f856a04a5311991d058cc261a287a7..864c9298865d2f13b12b032d912de9523d9f4d83 100644
(file)
--- 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);