OSDN Git Service

replace abort with _mesa_problem()
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 29 Aug 2006 19:09:57 +0000 (19:09 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 29 Aug 2006 19:09:57 +0000 (19:09 +0000)
src/mesa/shader/slang/slang_execute.c

index e5beb50..bdf3cee 100644 (file)
@@ -569,7 +569,8 @@ int _slang_execute2 (const slang_assembly_file *file, slang_machine *mach)
                                (GLint) (stack[mach->sp]._float) ? "true" : "false");
                        break;
                default:
-                       assert (0);
+                       _mesa_problem(NULL, "bad slang opcode 0x%x", a->type);
+                       return 0;
                }
        }