From: Brian Paul Date: Sat, 23 Oct 2010 15:37:39 +0000 (-0600) Subject: mesa: added glGet query for GL_RGBA_INTEGER_MODE_EXT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9968a3960f7824e9cfffc366494b19834eff5d40;p=mesa.git mesa: added glGet query for GL_RGBA_INTEGER_MODE_EXT --- diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 29a21deebc8..39ce177fcd3 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -173,6 +173,7 @@ union value { #define BUFFER_INT(field) BUFFER_FIELD(field, TYPE_INT) #define BUFFER_ENUM(field) BUFFER_FIELD(field, TYPE_ENUM) +#define BUFFER_BOOL(field) BUFFER_FIELD(field, TYPE_BOOLEAN) #define CONTEXT_INT(field) CONTEXT_FIELD(field, TYPE_INT) #define CONTEXT_INT2(field) CONTEXT_FIELD(field, TYPE_INT_2) @@ -260,6 +261,12 @@ static const int extra_EXT_fog_coord_flush_current[] = { EXTRA_END }; +static const int extra_EXT_texture_integer[] = { + EXT(EXT_texture_integer), + EXTRA_END +}; + + EXTRA_EXT(ARB_multitexture); EXTRA_EXT(ARB_texture_cube_map); EXTRA_EXT(MESA_texture_array); @@ -1144,6 +1151,10 @@ static const struct value_desc values[] = { { GL_MAX_SERVER_WAIT_TIMEOUT, CONTEXT_INT64(Const.MaxServerWaitTimeout), extra_ARB_sync }, + /* GL_EXT_texture_integer */ + { GL_RGBA_INTEGER_MODE_EXT, BUFFER_BOOL(_IntegerColor), + extra_EXT_texture_integer }, + /* GL_EXT_transform_feedback */ { GL_TRANSFORM_FEEDBACK_BUFFER_BINDING, LOC_CUSTOM, TYPE_INT, 0, extra_EXT_transform_feedback },