projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b1f43e
)
Complain and exit if the given shader file doesn't exist.
author
Kenneth Graunke
<kenneth@whitecape.org>
Wed, 16 Jun 2010 19:10:55 +0000
(12:10 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Mon, 21 Jun 2010 18:27:33 +0000
(11:27 -0700)
main.cpp
patch
|
blob
|
history
diff --git
a/main.cpp
b/main.cpp
index a6d6c47bfda9a0ed7188f31f92765aadf7ea8df4..b8b99bf0bb060761b04aae6b294ca49e8ae89f1e 100644
(file)
--- a/
main.cpp
+++ b/
main.cpp
@@
-218,6
+218,10
@@
main(int argc, char **argv)
usage_fail(argv[0]);
shader->Source = load_text_file(argv[optind], &shader->SourceLen);
+ if (shader->Source == NULL) {
+ printf("File \"%s\" does not exist.\n", argv[optind]);
+ exit(EXIT_FAILURE);
+ }
compile_shader(shader);