Fix the build from 887d2b64
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 20 Jan 2011 19:30:14 +0000 (11:30 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 20 Jan 2011 19:30:14 +0000 (11:30 -0800)
Thanks to all the include frobbing, GLuint is not known in some places
that included enums.h.

src/mesa/main/enums.c
src/mesa/main/enums.h

index e9d6b6b156cd0f8d8dfc9cc79ed71169bdaee83c..83d7fb66c0a6424ee415e7e866894e21aa5e7646 100644 (file)
@@ -6268,7 +6268,7 @@ static const char *prim_names[PRIM_UNKNOWN + 1] = {
  * GL_FALSE/GL_POINTS ambiguity and others.
  */
 const char *
-_mesa_lookup_prim_by_nr(GLuint nr)
+_mesa_lookup_prim_by_nr(unsigned nr)
 {
    if (nr < Elements(prim_names))
       return prim_names[nr];
index bf1d391d59eeca55373f55e2f5fbf95021a9188a..7733df22f91ab69778912b4b05111db0cede4f1d 100644 (file)
@@ -45,7 +45,7 @@ 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( GLuint nr );
+const char *_mesa_lookup_prim_by_nr( unsigned nr );
 
 extern int _mesa_lookup_enum_by_name( const char *symbol );