gallium: Disable debug break by default on windows.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 7 Aug 2008 08:15:32 +0000 (09:15 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 12 Aug 2008 12:00:27 +0000 (13:00 +0100)
src/gallium/auxiliary/util/p_debug.c

index 082b0e9fb56e33cfc2dc873ccfe656f3f3abc4c4..2c2f2f8931f473c9986cef666d1b8382459c784d 100644 (file)
@@ -324,7 +324,11 @@ void _debug_assert_fail(const char *expr,
                         const char *function) 
 {
    _debug_printf("%s:%u:%s: Assertion `%s' failed.\n", file, line, function, expr);
+#if defined(PIPE_OS_WINDOWS)
+   if (debug_get_bool_option("GALLIUM_ABORT_ON_ASSERT", FALSE))
+#else
    if (debug_get_bool_option("GALLIUM_ABORT_ON_ASSERT", TRUE))
+#endif
       debug_break();
    else
       _debug_printf("continuing...\n");