summaryrefslogtreecommitdiff
path: root/src/mesa/main/enums.h
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-07-02 13:29:46 +0100
committerKeith Whitwell <keithw@vmware.com>2009-07-02 13:29:46 +0100
commit1668a679c4aadb37f5af0d6126c414fb9fbbf748 (patch)
treeb3edf4157c658f1c37d5e046752135bd2ec566ea /src/mesa/main/enums.h
parentb3e8e1cd4c1584f735e35914861ae2e8ae5b6b2b (diff)
parent1fa4cde757cc94c0afa40d855309911247974e98 (diff)
Merge commit 'origin/dlist-statechange-shortcircuit' into mesa_7_5_branch
Conflicts: progs/trivial/Makefile Pull in a minimal version of statechange shortcircuiting in display list compilation. This affects only glMaterial and glShadeModel state, and includes quite a few tests to exercise various tricky cases. If this goes well, will consider extending to all state in the future.
Diffstat (limited to 'src/mesa/main/enums.h')
-rw-r--r--src/mesa/main/enums.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/enums.h b/src/mesa/main/enums.h
index 23a4767f35..b5f69001b8 100644
--- a/src/mesa/main/enums.h
+++ b/src/mesa/main/enums.h
@@ -40,6 +40,12 @@
#if defined(_HAVE_FULL_GL) && _HAVE_FULL_GL
extern const char *_mesa_lookup_enum_by_nr( int nr );
+
+/* Get the name of an enum given that it is a primitive type. Avoids
+ * GL_FALSE/GL_POINTS ambiguity and others.
+ */
+const char *_mesa_lookup_prim_by_nr( int nr );
+
extern int _mesa_lookup_enum_by_name( const char *symbol );
#else