gallium: Fix segfault and valgrind error introduced with commit 3f2e006b759705abd7c40...
authorThomas Hellstrom <thellstrom-at-vmware-dot-com>
Mon, 15 Jun 2009 09:20:31 +0000 (11:20 +0200)
committerThomas Hellstrom <thellstrom-at-vmware-dot-com>
Mon, 15 Jun 2009 09:22:06 +0000 (11:22 +0200)
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
src/gallium/include/pipe/p_format.h

index e31538c95fcd67d31e97c2cc56934d7e550082d6..c4469d4a9e98a4fb3b604be7c3abe16160f9c02f 100644 (file)
@@ -563,7 +563,11 @@ pf_is_depth_and_stencil( enum pipe_format format )
 }
 
 /** DEPRECATED: For backwards compatibility */
-#define pf_is_depth_stencil pf_is_depth_or_stencil
+static INLINE boolean
+pf_is_depth_stencil( enum pipe_format format )
+{
+   return pf_is_depth_or_stencil( format );
+}
 
 static INLINE boolean 
 pf_is_compressed( enum pipe_format format )