mesa: additional integer formats in _mesa_bytes_per_pixel()
[mesa.git] / src / mesa / main / enums.h
index 23a4767f3501eef2f920e59fb528f68998423f4d..b5f69001b84fe5ca9a676b329fe97a1229c3b1ca 100644 (file)
 #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