summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_compile.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-02-26 15:06:56 -0700
committerBrian <[email protected]>2007-02-26 15:06:56 -0700
commit6817407d498ff0c5074321b965673f6efdaaeb21 (patch)
tree4c594b39c564382b81385bf3736ee71c0d12992c /src/mesa/shader/slang/slang_compile.c
parent365f8fb0dd19a8fa43b1de8e89793059095981db (diff)
fix error flagging
Diffstat (limited to 'src/mesa/shader/slang/slang_compile.c')
-rw-r--r--src/mesa/shader/slang/slang_compile.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c
index 1a4c7d31f16..dc2e680e991 100644
--- a/src/mesa/shader/slang/slang_compile.c
+++ b/src/mesa/shader/slang/slang_compile.c
@@ -2070,16 +2070,9 @@ _slang_compile(GLcontext *ctx, struct gl_shader *shader)
success = compile_shader(ctx, &obj, type, &info_log, shader);
- if (success && !info_log.text) {
-#if 0
- slang_create_uniforms(&object->expdata, shader);
- _mesa_print_program(program);
- _mesa_print_program_parameters(ctx, program);
-#endif
- }
- else {
+ if (!success || info_log.error_flag) {
success = GL_FALSE;
- /* XXX more work on info log needed here */
+ /* copy info-log string to shader object */
if (info_log.text) {
if (shader->InfoLog) {
free(shader->InfoLog);