[Mesa-dev] [PATCH 2/3] main: Move MESA_SHADER_TYPES outside of gl_shader_type enum.

Paul Berry stereotype441 at gmail.com
Mon Dec 16 14:27:38 PST 2013


This will avoid spurious compiler warnings in the patch that follows.
---
 src/mesa/main/mtypes.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index f7e1391..534c3bc 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -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
 {
-- 
1.8.4.2



More information about the mesa-dev mailing list