gallium: Disable memory debugging for Windows OGL.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 14 Jan 2009 11:39:12 +0000 (11:39 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 14 Jan 2009 11:40:32 +0000 (11:40 +0000)
Unfortunately both Mesa and Gallium use the same defines for memory
allocation (MALLOC, FREE, etc), and worse, some times memory is allocated
with one set and freed with the other set, causing the homegrown memory
debugger to trip on itself.

In the future mesa and gallium should use different names, but for now,
memory debugging on Windows will have to be carried with different tools..

src/gallium/auxiliary/util/u_memory.h

index 626b13a..1a6b596 100644 (file)
@@ -52,7 +52,7 @@ extern "C" {
 #endif
 
 
-#if defined(PIPE_OS_WINDOWS) && defined(DEBUG) 
+#if defined(PIPE_SUBSYSTEM_WINDOWS_DISPLAY) && defined(DEBUG) 
 
 /* memory debugging */