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 e5beb509f0b0c4c5e0ac47cfac6ea5abea3b2711..bdf3cee257be2d56fef71c1ebd56afa2f963d93e 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;
                }
        }