Gallium: remove unnecessary ifdef for MAX_CLIPPED_VERTICES.
authorPaul Berry <stereotype441@gmail.com>
Thu, 8 Sep 2011 01:18:45 +0000 (18:18 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 20 Sep 2011 21:51:16 +0000 (14:51 -0700)
draw_pipe_clip.c contained an ifdef to ensure that its local
definition of MAX_CLIPPED_VERTICES would not take effect if the global
MAX_CLIPPED_VERTICES (defined in src/mesa/main/config.h) was already
defined.  This was unnecessary because draw_pipe_clip.c doesn't
directly or indirectly include src/mesa/main/config.h.  Removed the
ifdef to reduce confusion.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_pipe_clip.c

index b49502cec4851636dce56a00713bee1164a83afa..e1eabe22288a24aaf0709313cf112c8aa7154dbb 100644 (file)
@@ -49,9 +49,7 @@
 #define DIFFERENT_SIGNS(x, y) ((x) * (y) <= 0.0F && (x) - (y) != 0.0F)
 #endif
 
-#ifndef MAX_CLIPPED_VERTICES
 #define MAX_CLIPPED_VERTICES ((2 * (6 + PIPE_MAX_CLIP_PLANES))+1)
-#endif