main: Move MESA_SHADER_TYPES outside of gl_shader_type enum.
authorPaul Berry <stereotype441@gmail.com>
Mon, 16 Dec 2013 21:05:09 +0000 (13:05 -0800)
committerPaul Berry <stereotype441@gmail.com>
Tue, 17 Dec 2013 20:31:36 +0000 (12:31 -0800)
This will avoid spurious compiler warnings in the patch that follows.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/mtypes.h

index f7e13910fb5e808f650b537713b829299883fd63..534c3bc50f717c25889f2003a5d2e5bd62119c60 100644 (file)
@@ -2399,9 +2399,10 @@ typedef enum
    MESA_SHADER_VERTEX = 0,
    MESA_SHADER_GEOMETRY = 1,
    MESA_SHADER_FRAGMENT = 2,
-   MESA_SHADER_TYPES = 3
 } gl_shader_type;
 
+#define MESA_SHADER_TYPES (MESA_SHADER_FRAGMENT + 1)
+
 
 struct gl_uniform_buffer_variable
 {