Mesa (master): print err msg if unable to open shader file
Brian Paul
brianp at kemper.freedesktop.org
Tue Nov 4 23:57:52 UTC 2008
Module: Mesa
Branch: master
Commit: 35a9f1bccf2284c853cd20ccf2192ebc382a4706
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=35a9f1bccf2284c853cd20ccf2192ebc382a4706
Author: Brian Paul <brian.paul at tungstengraphics.com>
Date: Tue Nov 4 15:19:28 2008 -0700
print err msg if unable to open shader file
---
progs/util/shaderutil.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/progs/util/shaderutil.c b/progs/util/shaderutil.c
index 4f17dd7..7458513 100644
--- a/progs/util/shaderutil.c
+++ b/progs/util/shaderutil.c
@@ -80,6 +80,7 @@ CompileShaderFile(GLenum shaderType, const char *filename)
FILE *f = fopen(filename, "r");
if (!f) {
+ fprintf(stderr, "Unable to open shader file %s\n", filename);
return 0;
}
More information about the mesa-commit
mailing list