mesa: adjust PRIM_x constants for geometry shaders
authorBrian Paul <brianp@vmware.com>
Thu, 2 May 2013 01:15:32 +0000 (19:15 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 2 May 2013 15:03:14 +0000 (09:03 -0600)
These values pertain to display lists, and the new types of geometry
shader primitives can be used in display lists.

And add new PRIM_MAX constant for follow-on changes.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/mtypes.h

index 89e00e32dc87d5692eb015217222c1d980ffc457..14b3c5beda05f85c4b56d8a2874fa606325729d1 100644 (file)
@@ -85,9 +85,10 @@ struct set_entry;
 
 
 /** Extra draw modes beyond GL_POINTS, GL_TRIANGLE_FAN, etc */
-#define PRIM_OUTSIDE_BEGIN_END   (GL_POLYGON+1)
-#define PRIM_INSIDE_UNKNOWN_PRIM (GL_POLYGON+2)
-#define PRIM_UNKNOWN             (GL_POLYGON+3)
+#define PRIM_MAX                 GL_TRIANGLE_STRIP_ADJACENCY
+#define PRIM_OUTSIDE_BEGIN_END   (PRIM_MAX + 1)
+#define PRIM_INSIDE_UNKNOWN_PRIM (PRIM_MAX + 2)
+#define PRIM_UNKNOWN             (PRIM_MAX + 3)