From abab4385437bdcfbfff1cf772a5c418eb06ed822 Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Mon, 16 Dec 2013 13:05:09 -0800 Subject: [PATCH] main: Move MESA_SHADER_TYPES outside of gl_shader_type enum. This will avoid spurious compiler warnings in the patch that follows. Reviewed-by: Brian Paul --- 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 f7e13910fb5..534c3bc50f7 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 { -- 2.30.2