1 typedef const unsigned short table_t[1024];
2 
3 static const int prime_factor = 89, prime_step = 281;
4 
5 static const struct value_desc values[] = {
6     { 0,  },
7     { GL_ALPHA_BITS, BUFFER_INT(Visual.alphaBits), extra_new_buffers },
8     { GL_BLEND, CONTEXT_BIT0(Color.BlendEnabled), NO_EXTRA },
9     { GL_BLEND_SRC, CONTEXT_ENUM(Color.Blend[0].SrcRGB), NO_EXTRA },
10     { GL_BLUE_BITS, BUFFER_INT(Visual.blueBits), extra_new_buffers },
11     { GL_COLOR_CLEAR_VALUE, LOC_CUSTOM, TYPE_FLOATN_4, 0, extra_new_frag_clamp },
12     { GL_COLOR_WRITEMASK, LOC_CUSTOM, TYPE_INT_4, 0, NO_EXTRA },
13     { GL_CULL_FACE, CONTEXT_BOOL(Polygon.CullFlag), NO_EXTRA },
14     { GL_CULL_FACE_MODE, CONTEXT_ENUM(Polygon.CullFaceMode), NO_EXTRA },
15     { GL_DEPTH_BITS, BUFFER_INT(Visual.depthBits), extra_new_buffers },
16     { GL_DEPTH_CLEAR_VALUE, CONTEXT_FIELD(Depth.Clear, TYPE_DOUBLEN), NO_EXTRA },
17     { GL_DEPTH_FUNC, CONTEXT_ENUM(Depth.Func), NO_EXTRA },
18     { GL_DEPTH_RANGE, LOC_CUSTOM, TYPE_DOUBLEN_2, 0, NO_EXTRA },
19     { GL_DEPTH_TEST, CONTEXT_BOOL(Depth.Test), NO_EXTRA },
20     { GL_DEPTH_WRITEMASK, CONTEXT_BOOL(Depth.Mask), NO_EXTRA },
21     { GL_DITHER, CONTEXT_BOOL(Color.DitherFlag), NO_EXTRA },
22     { GL_FRONT_FACE, CONTEXT_ENUM(Polygon.FrontFace), NO_EXTRA },
23     { GL_GREEN_BITS, BUFFER_INT(Visual.greenBits), extra_new_buffers },
24     { GL_LINE_WIDTH, CONTEXT_FLOAT(Line.Width), NO_EXTRA },
25     { GL_ALIASED_LINE_WIDTH_RANGE, CONTEXT_FLOAT2(Const.MinLineWidth), NO_EXTRA },
26     { GL_MAX_ELEMENTS_VERTICES, CONTEXT_INT(Const.MaxArrayLockSize), NO_EXTRA },
27     { GL_MAX_ELEMENTS_INDICES, CONTEXT_INT(Const.MaxArrayLockSize), NO_EXTRA },
28     { GL_MAX_TEXTURE_SIZE, LOC_CUSTOM, TYPE_INT, offsetof(struct gl_context, Const.MaxTextureLevels), NO_EXTRA },
29     { GL_MAX_VIEWPORT_DIMS, CONTEXT_INT2(Const.MaxViewportWidth), NO_EXTRA },
30     { GL_PACK_ALIGNMENT, CONTEXT_INT(Pack.Alignment), NO_EXTRA },
31     { GL_ALIASED_POINT_SIZE_RANGE, CONTEXT_FLOAT2(Const.MinPointSize), NO_EXTRA },
32     { GL_POLYGON_OFFSET_FACTOR, CONTEXT_FLOAT(Polygon.OffsetFactor ), NO_EXTRA },
33     { GL_POLYGON_OFFSET_UNITS, CONTEXT_FLOAT(Polygon.OffsetUnits ), NO_EXTRA },
34     { GL_POLYGON_OFFSET_FILL, CONTEXT_BOOL(Polygon.OffsetFill), NO_EXTRA },
35     { GL_RED_BITS, BUFFER_INT(Visual.redBits), extra_new_buffers },
36     { GL_SCISSOR_BOX, LOC_CUSTOM, TYPE_INT_4, 0, NO_EXTRA },
37     { GL_SCISSOR_TEST, LOC_CUSTOM, TYPE_BOOLEAN, NO_OFFSET, NO_EXTRA },
38     { GL_STENCIL_BITS, BUFFER_INT(Visual.stencilBits), extra_new_buffers },
39     { GL_STENCIL_CLEAR_VALUE, CONTEXT_INT(Stencil.Clear), NO_EXTRA },
40     { GL_STENCIL_FAIL, LOC_CUSTOM, TYPE_ENUM, NO_OFFSET, NO_EXTRA },
41     { GL_STENCIL_FUNC, LOC_CUSTOM, TYPE_ENUM, NO_OFFSET, NO_EXTRA },
42     { GL_STENCIL_PASS_DEPTH_FAIL, LOC_CUSTOM, TYPE_ENUM, NO_OFFSET, NO_EXTRA },
43     { GL_STENCIL_PASS_DEPTH_PASS, LOC_CUSTOM, TYPE_ENUM, NO_OFFSET, NO_EXTRA },
44     { GL_STENCIL_REF, LOC_CUSTOM, TYPE_UINT, NO_OFFSET, NO_EXTRA },
45     { GL_STENCIL_TEST, CONTEXT_BOOL(Stencil.Enabled), NO_EXTRA },
46     { GL_STENCIL_VALUE_MASK, LOC_CUSTOM, TYPE_UINT, NO_OFFSET, NO_EXTRA },
47     { GL_STENCIL_WRITEMASK, LOC_CUSTOM, TYPE_UINT, NO_OFFSET, NO_EXTRA },
48     { GL_SUBPIXEL_BITS, CONTEXT_INT(Const.SubPixelBits), NO_EXTRA },
49     { GL_TEXTURE_BINDING_2D, LOC_CUSTOM, TYPE_INT, TEXTURE_2D_INDEX, NO_EXTRA },
50     { GL_UNPACK_ALIGNMENT, CONTEXT_INT(Unpack.Alignment), NO_EXTRA },
51     { GL_VIEWPORT, LOC_CUSTOM, TYPE_FLOAT_4, 0, NO_EXTRA },
52     { GL_ACTIVE_TEXTURE, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
53     { GL_TEXTURE_BINDING_CUBE_MAP_ARB, LOC_CUSTOM, TYPE_INT, TEXTURE_CUBE_INDEX, extra_ARB_texture_cube_map },
54     { GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB, LOC_CUSTOM, TYPE_INT, offsetof(struct gl_context, Const.MaxCubeTextureLevels), extra_ARB_texture_cube_map },
55     { GL_BLEND_SRC_RGB, CONTEXT_ENUM(Color.Blend[0].SrcRGB), NO_EXTRA },
56     { GL_BLEND_DST_RGB, CONTEXT_ENUM(Color.Blend[0].DstRGB), NO_EXTRA },
57     { GL_BLEND_SRC_ALPHA, CONTEXT_ENUM(Color.Blend[0].SrcA), NO_EXTRA },
58     { GL_BLEND_DST_ALPHA, CONTEXT_ENUM(Color.Blend[0].DstA), NO_EXTRA },
59     { GL_BLEND_EQUATION, CONTEXT_ENUM(Color.Blend[0].EquationRGB), NO_EXTRA },
60     { GL_BLEND_EQUATION_ALPHA_EXT, CONTEXT_ENUM(Color.Blend[0].EquationA), NO_EXTRA },
61     { GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
62     { GL_COMPRESSED_TEXTURE_FORMATS, LOC_CUSTOM, TYPE_INT_N, 0, NO_EXTRA },
63     { GL_SAMPLE_ALPHA_TO_COVERAGE_ARB, CONTEXT_BOOL(Multisample.SampleAlphaToCoverage), NO_EXTRA },
64     { GL_SAMPLE_COVERAGE_ARB, CONTEXT_BOOL(Multisample.SampleCoverage), NO_EXTRA },
65     { GL_SAMPLE_COVERAGE_VALUE_ARB, CONTEXT_FLOAT(Multisample.SampleCoverageValue), NO_EXTRA },
66     { GL_SAMPLE_COVERAGE_INVERT_ARB, CONTEXT_BOOL(Multisample.SampleCoverageInvert), NO_EXTRA },
67     { GL_SAMPLE_BUFFERS_ARB, LOC_CUSTOM, TYPE_INT, 0, extra_new_buffers },
68     { GL_SAMPLES_ARB, LOC_CUSTOM, TYPE_INT, 0, extra_new_buffers },
69     { GL_SAMPLE_SHADING_ARB, CONTEXT_BOOL(Multisample.SampleShading), extra_gl40_ARB_sample_shading },
70     { GL_MIN_SAMPLE_SHADING_VALUE_ARB, CONTEXT_FLOAT(Multisample.MinSampleShadingValue), extra_gl40_ARB_sample_shading },
71     { GL_GENERATE_MIPMAP_HINT_SGIS, CONTEXT_ENUM(Hint.GenerateMipmap), NO_EXTRA },
72     { GL_ARRAY_BUFFER_BINDING_ARB, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
73     { GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
74     { GL_CLAMP_VERTEX_COLOR, CONTEXT_ENUM(Light.ClampVertexColor), extra_ARB_color_buffer_float },
75     { GL_CLAMP_FRAGMENT_COLOR, CONTEXT_ENUM(Color.ClampFragmentColor), extra_ARB_color_buffer_float },
76     { GL_CLAMP_READ_COLOR, CONTEXT_ENUM(Color.ClampReadColor), extra_ARB_color_buffer_float_or_glcore },
77     { GL_COPY_READ_BUFFER, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
78     { GL_COPY_WRITE_BUFFER, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
79     { GL_IMPLEMENTATION_COLOR_READ_TYPE_OES, LOC_CUSTOM, TYPE_INT, 0, extra_new_buffers },
80     { GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES, LOC_CUSTOM, TYPE_INT, 0, extra_new_buffers },
81     { GL_FRAMEBUFFER_BINDING_EXT, BUFFER_INT(Name), NO_EXTRA },
82     { GL_RENDERBUFFER_BINDING_EXT, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
83     { GL_MAX_RENDERBUFFER_SIZE_EXT, CONTEXT_INT(Const.MaxRenderbufferSize), NO_EXTRA },
84     { GL_MAX_CLIP_PLANES, CONTEXT_INT(Const.MaxClipPlanes), NO_EXTRA },
85     { GL_VERTEX_ARRAY_BINDING, ARRAY_INT(Name), NO_EXTRA },
86     { GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, CONTEXT_FLOAT(Const.MaxTextureMaxAnisotropy), extra_EXT_texture_filter_anisotropic },
87     { GL_DEBUG_OUTPUT, LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA },
88     { GL_DEBUG_OUTPUT_SYNCHRONOUS, LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA },
89     { GL_DEBUG_LOGGED_MESSAGES, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
90     { GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
91     { GL_MAX_DEBUG_LOGGED_MESSAGES, CONST(MAX_DEBUG_LOGGED_MESSAGES), NO_EXTRA },
92     { GL_MAX_DEBUG_MESSAGE_LENGTH, CONST(MAX_DEBUG_MESSAGE_LENGTH), NO_EXTRA },
93     { GL_MAX_LABEL_LENGTH, CONST(MAX_LABEL_LENGTH), NO_EXTRA },
94     { GL_MAX_DEBUG_GROUP_STACK_DEPTH, CONST(MAX_DEBUG_GROUP_STACK_DEPTH), NO_EXTRA },
95     { GL_DEBUG_GROUP_STACK_DEPTH, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
96     { GL_POLYGON_OFFSET_CLAMP_EXT, CONTEXT_FLOAT(Polygon.OffsetClamp), extra_ARB_polygon_offset_clamp },
97     { GL_MAX_LIGHTS, CONTEXT_INT(Const.MaxLights), NO_EXTRA },
98     { GL_LIGHT0, CONTEXT_BOOL(Light.Light[0].Enabled), NO_EXTRA },
99     { GL_LIGHT1, CONTEXT_BOOL(Light.Light[1].Enabled), NO_EXTRA },
100     { GL_LIGHT2, CONTEXT_BOOL(Light.Light[2].Enabled), NO_EXTRA },
101     { GL_LIGHT3, CONTEXT_BOOL(Light.Light[3].Enabled), NO_EXTRA },
102     { GL_LIGHT4, CONTEXT_BOOL(Light.Light[4].Enabled), NO_EXTRA },
103     { GL_LIGHT5, CONTEXT_BOOL(Light.Light[5].Enabled), NO_EXTRA },
104     { GL_LIGHT6, CONTEXT_BOOL(Light.Light[6].Enabled), NO_EXTRA },
105     { GL_LIGHT7, CONTEXT_BOOL(Light.Light[7].Enabled), NO_EXTRA },
106     { GL_LIGHTING, CONTEXT_BOOL(Light.Enabled), NO_EXTRA },
107     { GL_LIGHT_MODEL_AMBIENT, CONTEXT_FIELD(Light.Model.Ambient[0], TYPE_FLOATN_4), NO_EXTRA },
108     { GL_LIGHT_MODEL_TWO_SIDE, CONTEXT_BOOL(Light.Model.TwoSide), NO_EXTRA },
109     { GL_ALPHA_TEST, CONTEXT_BOOL(Color.AlphaEnabled), NO_EXTRA },
110     { GL_ALPHA_TEST_FUNC, CONTEXT_ENUM(Color.AlphaFunc), NO_EXTRA },
111     { GL_ALPHA_TEST_REF, LOC_CUSTOM, TYPE_FLOATN, 0, extra_new_frag_clamp },
112     { GL_BLEND_DST, CONTEXT_ENUM(Color.Blend[0].DstRGB), NO_EXTRA },
113     { GL_CLIP_DISTANCE0, CONTEXT_BIT0(Transform.ClipPlanesEnabled), extra_valid_clip_distance },
114     { GL_CLIP_DISTANCE1, CONTEXT_BIT1(Transform.ClipPlanesEnabled), extra_valid_clip_distance },
115     { GL_CLIP_DISTANCE2, CONTEXT_BIT2(Transform.ClipPlanesEnabled), extra_valid_clip_distance },
116     { GL_CLIP_DISTANCE3, CONTEXT_BIT3(Transform.ClipPlanesEnabled), extra_valid_clip_distance },
117     { GL_CLIP_DISTANCE4, CONTEXT_BIT4(Transform.ClipPlanesEnabled), extra_valid_clip_distance },
118     { GL_CLIP_DISTANCE5, CONTEXT_BIT5(Transform.ClipPlanesEnabled), extra_valid_clip_distance },
119     { GL_CLIP_DISTANCE6, CONTEXT_BIT6(Transform.ClipPlanesEnabled), extra_valid_clip_distance },
120     { GL_CLIP_DISTANCE7, CONTEXT_BIT7(Transform.ClipPlanesEnabled), extra_valid_clip_distance },
121     { GL_COLOR_MATERIAL, CONTEXT_BOOL(Light.ColorMaterialEnabled), NO_EXTRA },
122     { GL_CURRENT_COLOR, CONTEXT_FIELD(Current.Attrib[VERT_ATTRIB_COLOR0][0], TYPE_FLOATN_4), extra_flush_current },
123     { GL_CURRENT_NORMAL, CONTEXT_FIELD(Current.Attrib[VERT_ATTRIB_NORMAL][0], TYPE_FLOATN_3), extra_flush_current },
124     { GL_CURRENT_TEXTURE_COORDS, LOC_CUSTOM, TYPE_FLOAT_4, 0, extra_flush_current_valid_texture_unit },
125     { GL_POINT_DISTANCE_ATTENUATION, CONTEXT_FLOAT3(Point.Params[0]), NO_EXTRA },
126     { GL_FOG, CONTEXT_BOOL(Fog.Enabled), NO_EXTRA },
127     { GL_FOG_COLOR, LOC_CUSTOM, TYPE_FLOATN_4, 0, extra_new_frag_clamp },
128     { GL_FOG_DENSITY, CONTEXT_FLOAT(Fog.Density), NO_EXTRA },
129     { GL_FOG_END, CONTEXT_FLOAT(Fog.End), NO_EXTRA },
130     { GL_FOG_HINT, CONTEXT_ENUM(Hint.Fog), NO_EXTRA },
131     { GL_FOG_MODE, CONTEXT_ENUM(Fog.Mode), NO_EXTRA },
132     { GL_FOG_START, CONTEXT_FLOAT(Fog.Start), NO_EXTRA },
133     { GL_LINE_SMOOTH, CONTEXT_BOOL(Line.SmoothFlag), NO_EXTRA },
134     { GL_LINE_SMOOTH_HINT, CONTEXT_ENUM(Hint.LineSmooth), NO_EXTRA },
135     { GL_LINE_WIDTH_RANGE, CONTEXT_FLOAT2(Const.MinLineWidthAA), NO_EXTRA },
136     { GL_COLOR_LOGIC_OP, CONTEXT_BOOL(Color.ColorLogicOpEnabled), NO_EXTRA },
137     { GL_LOGIC_OP_MODE, CONTEXT_ENUM(Color.LogicOp), NO_EXTRA },
138     { GL_MATRIX_MODE, CONTEXT_ENUM(Transform.MatrixMode), NO_EXTRA },
139     { GL_MAX_MODELVIEW_STACK_DEPTH, CONST(MAX_MODELVIEW_STACK_DEPTH), NO_EXTRA },
140     { GL_MAX_PROJECTION_STACK_DEPTH, CONST(MAX_PROJECTION_STACK_DEPTH), NO_EXTRA },
141     { GL_MAX_TEXTURE_STACK_DEPTH, CONST(MAX_TEXTURE_STACK_DEPTH), NO_EXTRA },
142     { GL_MODELVIEW_MATRIX, CONTEXT_MATRIX(ModelviewMatrixStack.Top), NO_EXTRA },
143     { GL_MODELVIEW_STACK_DEPTH, LOC_CUSTOM, TYPE_INT, offsetof(struct gl_context, ModelviewMatrixStack.Depth), NO_EXTRA },
144     { GL_NORMALIZE, CONTEXT_BOOL(Transform.Normalize), NO_EXTRA },
145     { GL_PACK_SKIP_IMAGES, CONTEXT_INT(Pack.SkipImages), NO_EXTRA },
146     { GL_PERSPECTIVE_CORRECTION_HINT, CONTEXT_ENUM(Hint.PerspectiveCorrection), NO_EXTRA },
147     { GL_POINT_SIZE, CONTEXT_FLOAT(Point.Size), NO_EXTRA },
148     { GL_POINT_SIZE_RANGE, CONTEXT_FLOAT2(Const.MinPointSizeAA), NO_EXTRA },
149     { GL_POINT_SMOOTH, CONTEXT_BOOL(Point.SmoothFlag), NO_EXTRA },
150     { GL_POINT_SMOOTH_HINT, CONTEXT_ENUM(Hint.PointSmooth), NO_EXTRA },
151     { GL_POINT_SIZE_MIN_EXT, CONTEXT_FLOAT(Point.MinSize), NO_EXTRA },
152     { GL_POINT_SIZE_MAX_EXT, CONTEXT_FLOAT(Point.MaxSize), NO_EXTRA },
153     { GL_POINT_FADE_THRESHOLD_SIZE_EXT, CONTEXT_FLOAT(Point.Threshold), NO_EXTRA },
154     { GL_PROJECTION_MATRIX, CONTEXT_MATRIX(ProjectionMatrixStack.Top), NO_EXTRA },
155     { GL_PROJECTION_STACK_DEPTH, LOC_CUSTOM, TYPE_INT, offsetof(struct gl_context, ProjectionMatrixStack.Depth), NO_EXTRA },
156     { GL_RESCALE_NORMAL, CONTEXT_BOOL(Transform.RescaleNormals), NO_EXTRA },
157     { GL_SHADE_MODEL, CONTEXT_ENUM(Light.ShadeModel), NO_EXTRA },
158     { GL_TEXTURE_2D, LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA },
159     { GL_TEXTURE_MATRIX, LOC_CUSTOM, TYPE_MATRIX, 0, extra_valid_texture_unit },
160     { GL_TEXTURE_STACK_DEPTH, LOC_CUSTOM, TYPE_INT, 0, extra_valid_texture_unit },
161     { GL_VERTEX_ARRAY, ARRAY_BOOL(VertexAttrib[VERT_ATTRIB_POS].Enabled), NO_EXTRA },
162     { GL_VERTEX_ARRAY_SIZE, ARRAY_INT(VertexAttrib[VERT_ATTRIB_POS].Size), NO_EXTRA },
163     { GL_VERTEX_ARRAY_TYPE, ARRAY_ENUM(VertexAttrib[VERT_ATTRIB_POS].Type), NO_EXTRA },
164     { GL_VERTEX_ARRAY_STRIDE, ARRAY_INT(VertexAttrib[VERT_ATTRIB_POS].Stride), NO_EXTRA },
165     { GL_NORMAL_ARRAY, ARRAY_BOOL(VertexAttrib[VERT_ATTRIB_NORMAL].Enabled), NO_EXTRA },
166     { GL_NORMAL_ARRAY_TYPE, ARRAY_ENUM(VertexAttrib[VERT_ATTRIB_NORMAL].Type), NO_EXTRA },
167     { GL_NORMAL_ARRAY_STRIDE, ARRAY_INT(VertexAttrib[VERT_ATTRIB_NORMAL].Stride), NO_EXTRA },
168     { GL_COLOR_ARRAY, ARRAY_BOOL(VertexAttrib[VERT_ATTRIB_COLOR0].Enabled), NO_EXTRA },
169     { GL_COLOR_ARRAY_SIZE, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
170     { GL_COLOR_ARRAY_TYPE, ARRAY_ENUM(VertexAttrib[VERT_ATTRIB_COLOR0].Type), NO_EXTRA },
171     { GL_COLOR_ARRAY_STRIDE, ARRAY_INT(VertexAttrib[VERT_ATTRIB_COLOR0].Stride), NO_EXTRA },
172     { GL_TEXTURE_COORD_ARRAY, LOC_CUSTOM, TYPE_BOOLEAN, offsetof(struct gl_array_attributes, Enabled), NO_EXTRA },
173     { GL_TEXTURE_COORD_ARRAY_SIZE, LOC_CUSTOM, TYPE_INT, offsetof(struct gl_array_attributes, Size), NO_EXTRA },
174     { GL_TEXTURE_COORD_ARRAY_TYPE, LOC_CUSTOM, TYPE_ENUM, offsetof(struct gl_array_attributes, Type), NO_EXTRA },
175     { GL_TEXTURE_COORD_ARRAY_STRIDE, LOC_CUSTOM, TYPE_INT, offsetof(struct gl_array_attributes, Stride), NO_EXTRA },
176     { GL_MAX_TEXTURE_UNITS, CONTEXT_INT(Const.MaxTextureUnits), NO_EXTRA },
177     { GL_CLIENT_ACTIVE_TEXTURE, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
178     { GL_TEXTURE_CUBE_MAP_ARB, LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA },
179     { GL_TEXTURE_GEN_STR_OES, LOC_TEXUNIT, TYPE_BIT_0, offsetof(struct gl_texture_unit, TexGenEnabled), NO_EXTRA },
180     { GL_MULTISAMPLE_ARB, CONTEXT_BOOL(Multisample.Enabled), NO_EXTRA },
181     { GL_SAMPLE_ALPHA_TO_ONE_ARB, CONTEXT_BOOL(Multisample.SampleAlphaToOne), NO_EXTRA },
182     { GL_VERTEX_ARRAY_BUFFER_BINDING_ARB, LOC_CUSTOM, TYPE_INT, offsetof(struct gl_vertex_array_object, BufferBinding[VERT_ATTRIB_POS].BufferObj), NO_EXTRA },
183     { GL_NORMAL_ARRAY_BUFFER_BINDING_ARB, LOC_CUSTOM, TYPE_INT, offsetof(struct gl_vertex_array_object, BufferBinding[VERT_ATTRIB_NORMAL].BufferObj), NO_EXTRA },
184     { GL_COLOR_ARRAY_BUFFER_BINDING_ARB, LOC_CUSTOM, TYPE_INT, offsetof(struct gl_vertex_array_object, BufferBinding[VERT_ATTRIB_COLOR0].BufferObj), NO_EXTRA },
185     { GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB, LOC_CUSTOM, TYPE_INT, NO_OFFSET, NO_EXTRA },
186     { GL_POINT_SPRITE_NV, CONTEXT_BOOL(Point.PointSprite), extra_NV_point_sprite_ARB_point_sprite },
187     { GL_POINT_SIZE_ARRAY_OES, ARRAY_FIELD(VertexAttrib[VERT_ATTRIB_POINT_SIZE].Enabled, TYPE_BOOLEAN), NO_EXTRA },
188     { GL_POINT_SIZE_ARRAY_TYPE_OES, ARRAY_FIELD(VertexAttrib[VERT_ATTRIB_POINT_SIZE].Type, TYPE_ENUM), NO_EXTRA },
189     { GL_POINT_SIZE_ARRAY_STRIDE_OES, ARRAY_FIELD(VertexAttrib[VERT_ATTRIB_POINT_SIZE].Stride, TYPE_INT), NO_EXTRA },
190     { GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
191     { GL_GPU_DISJOINT_EXT, LOC_CUSTOM, TYPE_INT, 0, extra_EXT_disjoint_timer_query },
192     { GL_MAX_TEXTURE_COORDS_ARB, CONTEXT_INT(Const.MaxTextureCoordUnits), extra_ARB_fragment_program },
193     { GL_PACK_IMAGE_HEIGHT, CONTEXT_INT(Pack.ImageHeight), NO_EXTRA },
194     { GL_PACK_ROW_LENGTH, CONTEXT_INT(Pack.RowLength), NO_EXTRA },
195     { GL_PACK_SKIP_PIXELS, CONTEXT_INT(Pack.SkipPixels), NO_EXTRA },
196     { GL_PACK_SKIP_ROWS, CONTEXT_INT(Pack.SkipRows), NO_EXTRA },
197     { GL_UNPACK_ROW_LENGTH, CONTEXT_INT(Unpack.RowLength), NO_EXTRA },
198     { GL_UNPACK_SKIP_PIXELS, CONTEXT_INT(Unpack.SkipPixels), NO_EXTRA },
199     { GL_UNPACK_SKIP_ROWS, CONTEXT_INT(Unpack.SkipRows), NO_EXTRA },
200     { GL_UNPACK_SKIP_IMAGES, CONTEXT_INT(Unpack.SkipImages), NO_EXTRA },
201     { GL_UNPACK_IMAGE_HEIGHT, CONTEXT_INT(Unpack.ImageHeight), NO_EXTRA },
202     { GL_MAX_DRAW_BUFFERS_ARB, CONTEXT_INT(Const.MaxDrawBuffers), NO_EXTRA },
203     { GL_MAX_COLOR_ATTACHMENTS, CONTEXT_INT(Const.MaxColorAttachments), NO_EXTRA },
204     { GL_DRAW_BUFFER0_ARB, BUFFER_ENUM(ColorDrawBuffer[0]), NO_EXTRA },
205     { GL_DRAW_BUFFER1_ARB, BUFFER_ENUM(ColorDrawBuffer[1]), extra_valid_draw_buffer },
206     { GL_DRAW_BUFFER2_ARB, BUFFER_ENUM(ColorDrawBuffer[2]), extra_valid_draw_buffer },
207     { GL_DRAW_BUFFER3_ARB, BUFFER_ENUM(ColorDrawBuffer[3]), extra_valid_draw_buffer },
208     { GL_DRAW_BUFFER4_ARB, BUFFER_ENUM(ColorDrawBuffer[4]), extra_valid_draw_buffer },
209     { GL_DRAW_BUFFER5_ARB, BUFFER_ENUM(ColorDrawBuffer[5]), extra_valid_draw_buffer },
210     { GL_DRAW_BUFFER6_ARB, BUFFER_ENUM(ColorDrawBuffer[6]), extra_valid_draw_buffer },
211     { GL_DRAW_BUFFER7_ARB, BUFFER_ENUM(ColorDrawBuffer[7]), extra_valid_draw_buffer },
212     { GL_BLEND_COLOR_EXT, LOC_CUSTOM, TYPE_FLOATN_4, 0, extra_new_frag_clamp },
213     { GL_MAX_TEXTURE_IMAGE_UNITS_ARB, CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxTextureImageUnits), extra_ARB_fragment_program },
214     { GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB, CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxTextureImageUnits), extra_ARB_vertex_shader },
215     { GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB, CONTEXT_INT(Const.MaxCombinedTextureImageUnits), extra_ARB_vertex_shader },
216     { GL_CURRENT_PROGRAM, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
217     { GL_STENCIL_BACK_FUNC, CONTEXT_ENUM(Stencil.Function[1]), NO_EXTRA },
218     { GL_STENCIL_BACK_VALUE_MASK, CONTEXT_UINT(Stencil.ValueMask[1]), NO_EXTRA },
219     { GL_STENCIL_BACK_WRITEMASK, CONTEXT_UINT(Stencil.WriteMask[1]), NO_EXTRA },
220     { GL_STENCIL_BACK_REF, LOC_CUSTOM, TYPE_UINT, NO_OFFSET, NO_EXTRA },
221     { GL_STENCIL_BACK_FAIL, CONTEXT_ENUM(Stencil.FailFunc[1]), NO_EXTRA },
222     { GL_STENCIL_BACK_PASS_DEPTH_FAIL, CONTEXT_ENUM(Stencil.ZFailFunc[1]), NO_EXTRA },
223     { GL_STENCIL_BACK_PASS_DEPTH_PASS, CONTEXT_ENUM(Stencil.ZPassFunc[1]), NO_EXTRA },
224     { GL_MAX_VERTEX_ATTRIBS_ARB, CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxAttribs), extra_ARB_vertex_program_api_es2 },
225     { GL_TEXTURE_BINDING_3D, LOC_CUSTOM, TYPE_INT, TEXTURE_3D_INDEX, NO_EXTRA },
226     { GL_MAX_3D_TEXTURE_SIZE, LOC_CUSTOM, TYPE_INT, offsetof(struct gl_context, Const.Max3DTextureLevels), NO_EXTRA },
227     { GL_FRAGMENT_SHADER_DERIVATIVE_HINT, CONTEXT_ENUM(Hint.FragmentShaderDerivative), extra_ARB_fragment_shader },
228     { GL_READ_BUFFER, LOC_CUSTOM, TYPE_ENUM, NO_OFFSET, extra_NV_read_buffer_api_gl },
229     { GL_SHADER_COMPILER, CONST(1), extra_ARB_ES2_compatibility_api_es2 },
230     { GL_MAX_VARYING_VECTORS, CONTEXT_INT(Const.MaxVarying), extra_ARB_ES2_compatibility_api_es2 },
231     { GL_MAX_VERTEX_UNIFORM_VECTORS, LOC_CUSTOM, TYPE_INT, 0, extra_ARB_ES2_compatibility_api_es2 },
232     { GL_MAX_FRAGMENT_UNIFORM_VECTORS, LOC_CUSTOM, TYPE_INT, 0, extra_ARB_ES2_compatibility_api_es2 },
233     { GL_NUM_SHADER_BINARY_FORMATS, CONST(0), extra_ARB_ES2_compatibility_api_es2 },
234     { GL_SHADER_BINARY_FORMATS, LOC_CUSTOM, TYPE_INVALID, 0, extra_ARB_ES2_compatibility_api_es2 },
235     { GL_NUM_PROGRAM_BINARY_FORMATS, CONTEXT_UINT(Const.NumProgramBinaryFormats), NO_EXTRA },
236     { GL_PROGRAM_BINARY_FORMATS, LOC_CUSTOM, TYPE_INT_N, 0, NO_EXTRA },
237     { GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL, CONST(MAX_PERFQUERY_QUERY_NAME_LENGTH), extra_INTEL_performance_query },
238     { GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL, CONST(MAX_PERFQUERY_COUNTER_NAME_LENGTH), extra_INTEL_performance_query },
239     { GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL, CONST(MAX_PERFQUERY_COUNTER_DESC_LENGTH), extra_INTEL_performance_query },
240     { GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL, CONST(PERFQUERY_HAVE_GPA_EXTENDED_COUNTERS), extra_INTEL_performance_query },
241     { GL_CONTEXT_RELEASE_BEHAVIOR, CONTEXT_ENUM(Const.ContextReleaseBehavior), NO_EXTRA },
242     { GL_MAX_DUAL_SOURCE_DRAW_BUFFERS, CONTEXT_INT(Const.MaxDualSourceDrawBuffers), extra_ARB_blend_func_extended },
243     { GL_BLEND_ADVANCED_COHERENT_KHR, CONTEXT_BOOL(Color.BlendCoherent), extra_KHR_blend_equation_advanced_coherent },
244     { GL_CONTEXT_ROBUST_ACCESS, CONTEXT_ENUM(Const.RobustAccess), extra_KHR_robustness },
245     { GL_RESET_NOTIFICATION_STRATEGY_ARB, CONTEXT_ENUM(Const.ResetStrategy), extra_KHR_robustness_or_GL },
246     { GL_MAX_TEXTURE_LOD_BIAS_EXT, CONTEXT_FLOAT(Const.MaxTextureLodBias), NO_EXTRA },
247     { GL_NUM_EXTENSIONS, LOC_CUSTOM, TYPE_INT, 0, extra_gl30_es3 },
248     { GL_MAJOR_VERSION, LOC_CUSTOM, TYPE_INT, 0, extra_gl30_es3 },
249     { GL_MINOR_VERSION, LOC_CUSTOM, TYPE_INT, 0, extra_gl30_es3 },
250     { GL_MAX_VERTEX_OUTPUT_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxOutputComponents), extra_gl32_es3 },
251     { GL_MAX_FRAGMENT_INPUT_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxInputComponents), extra_gl32_es3 },
252     { GL_MAX_ELEMENT_INDEX, CONTEXT_INT64(Const.MaxElementIndex), extra_ARB_ES3_compatibility_api_es3 },
253     { GL_PRIMITIVE_RESTART_FIXED_INDEX, CONTEXT_BOOL(Array.PrimitiveRestartFixedIndex), extra_ARB_ES3_compatibility_api_es3 },
254     { GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB, CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxUniformComponents), extra_ARB_fragment_shader },
255     { GL_MAX_SAMPLES, CONTEXT_INT(Const.MaxSamples), extra_ARB_framebuffer_object_EXT_framebuffer_multisample },
256     { GL_SAMPLER_BINDING, LOC_CUSTOM, TYPE_INT, GL_SAMPLER_BINDING, NO_EXTRA },
257     { GL_MAX_SERVER_WAIT_TIMEOUT, CONTEXT_INT64(Const.MaxServerWaitTimeout), extra_ARB_sync },
258     { GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED, LOC_CUSTOM, TYPE_BOOLEAN, 0, extra_ARB_transform_feedback2_api_es3 },
259     { GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE, LOC_CUSTOM, TYPE_BOOLEAN, 0, extra_ARB_transform_feedback2_api_es3 },
260     { GL_TRANSFORM_FEEDBACK_BINDING, LOC_CUSTOM, TYPE_INT, 0, extra_ARB_transform_feedback2_api_es3 },
261     { GL_MAX_VERTEX_UNIFORM_BLOCKS, CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxUniformBlocks), extra_ARB_uniform_buffer_object },
262     { GL_MAX_FRAGMENT_UNIFORM_BLOCKS, CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxUniformBlocks), extra_ARB_uniform_buffer_object },
263     { GL_MAX_COMBINED_UNIFORM_BLOCKS, CONTEXT_INT(Const.MaxCombinedUniformBlocks), extra_ARB_uniform_buffer_object },
264     { GL_MAX_UNIFORM_BLOCK_SIZE, CONTEXT_INT(Const.MaxUniformBlockSize), extra_ARB_uniform_buffer_object },
265     { GL_MAX_UNIFORM_BUFFER_BINDINGS, CONTEXT_INT(Const.MaxUniformBufferBindings), extra_ARB_uniform_buffer_object },
266     { GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxCombinedUniformComponents), extra_ARB_uniform_buffer_object },
267     { GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxCombinedUniformComponents), extra_ARB_uniform_buffer_object },
268     { GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, CONTEXT_INT(Const.UniformBufferOffsetAlignment), extra_ARB_uniform_buffer_object },
269     { GL_UNIFORM_BUFFER_BINDING, LOC_CUSTOM, TYPE_INT, 0, extra_ARB_uniform_buffer_object },
270     { GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB, CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxUniformComponents), extra_ARB_vertex_shader },
271     { GL_MAX_VARYING_FLOATS_ARB, LOC_CUSTOM, TYPE_INT, 0, extra_ARB_vertex_shader },
272     { GL_READ_FRAMEBUFFER_BINDING_EXT, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
273     { GL_MIN_PROGRAM_TEXEL_OFFSET, CONTEXT_INT(Const.MinProgramTexelOffset), extra_GLSL_130_es3 },
274     { GL_MAX_PROGRAM_TEXEL_OFFSET, CONTEXT_INT(Const.MaxProgramTexelOffset), extra_GLSL_130_es3 },
275     { GL_PIXEL_PACK_BUFFER_BINDING_EXT, LOC_CUSTOM, TYPE_INT, 0, extra_EXT_pixel_buffer_object },
276     { GL_PIXEL_UNPACK_BUFFER_BINDING_EXT, LOC_CUSTOM, TYPE_INT, 0, extra_EXT_pixel_buffer_object },
277     { GL_TEXTURE_BINDING_2D_ARRAY, LOC_CUSTOM, TYPE_INT, TEXTURE_2D_ARRAY_INDEX, extra_EXT_texture_array_es3 },
278     { GL_MAX_ARRAY_TEXTURE_LAYERS_EXT, CONTEXT_INT(Const.MaxArrayTextureLayers), extra_EXT_texture_array_es3 },
279     { GL_TRANSFORM_FEEDBACK_BUFFER_BINDING, LOC_CUSTOM, TYPE_INT, 0, extra_EXT_transform_feedback },
280     { GL_RASTERIZER_DISCARD, CONTEXT_BOOL(RasterDiscard), extra_EXT_transform_feedback },
281     { GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS, CONTEXT_INT(Const.MaxTransformFeedbackInterleavedComponents), extra_EXT_transform_feedback },
282     { GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS, CONTEXT_INT(Const.MaxTransformFeedbackBuffers), extra_EXT_transform_feedback },
283     { GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS, CONTEXT_INT(Const.MaxTransformFeedbackSeparateComponents), extra_EXT_transform_feedback },
284     { GL_MAX_WINDOW_RECTANGLES_EXT, CONTEXT_INT(Const.MaxWindowRectangles), extra_EXT_window_rectangles },
285     { GL_NUM_WINDOW_RECTANGLES_EXT, CONTEXT_INT(Scissor.NumWindowRects), extra_EXT_window_rectangles },
286     { GL_WINDOW_RECTANGLE_MODE_EXT, CONTEXT_ENUM(Scissor.WindowRectMode), extra_EXT_window_rectangles },
287     { GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT, CONTEXT_BOOL(Extensions.MESA_shader_framebuffer_fetch), extra_EXT_shader_framebuffer_fetch },
288     { GL_TEXTURE_BINDING_EXTERNAL_OES, LOC_CUSTOM, TYPE_INT, TEXTURE_EXTERNAL_INDEX, extra_OES_EGL_image_external },
289     { GL_TEXTURE_EXTERNAL_OES, LOC_CUSTOM, TYPE_BOOLEAN, 0, extra_OES_EGL_image_external },
290     { GL_MAX_TEXTURE_BUFFER_SIZE_ARB, CONTEXT_INT(Const.MaxTextureBufferSize), extra_texture_buffer_object },
291     { GL_TEXTURE_BINDING_BUFFER_ARB, LOC_CUSTOM, TYPE_INT, 0, extra_texture_buffer_object },
292     { GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB, LOC_CUSTOM, TYPE_INT, TEXTURE_BUFFER_INDEX, extra_texture_buffer_object },
293     { GL_TEXTURE_BUFFER_FORMAT_ARB, LOC_CUSTOM, TYPE_INT, 0, extra_texture_buffer_object },
294     { GL_TEXTURE_BUFFER_ARB, LOC_CUSTOM, TYPE_INT, 0, extra_texture_buffer_object },
295     { GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT, CONTEXT_INT(Const.TextureBufferOffsetAlignment), extra_ARB_texture_buffer_range },
296     { GL_MAX_IMAGE_UNITS, CONTEXT_INT(Const.MaxImageUnits), extra_ARB_shader_image_load_store },
297     { GL_MAX_VERTEX_IMAGE_UNIFORMS, CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxImageUniforms), extra_ARB_shader_image_load_store },
298     { GL_MAX_FRAGMENT_IMAGE_UNIFORMS, CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxImageUniforms), extra_ARB_shader_image_load_store },
299     { GL_MAX_COMBINED_IMAGE_UNIFORMS, CONTEXT_INT(Const.MaxCombinedImageUniforms), extra_ARB_shader_image_load_store },
300     { GL_ATOMIC_COUNTER_BUFFER_BINDING, LOC_CUSTOM, TYPE_INT, 0, extra_ARB_shader_atomic_counters },
301     { GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS, CONTEXT_INT(Const.MaxAtomicBufferBindings), extra_ARB_shader_atomic_counters },
302     { GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE, CONTEXT_INT(Const.MaxAtomicBufferSize), extra_ARB_shader_atomic_counters },
303     { GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS, CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxAtomicBuffers), extra_ARB_shader_atomic_counters },
304     { GL_MAX_VERTEX_ATOMIC_COUNTERS, CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxAtomicCounters), extra_ARB_shader_atomic_counters },
305     { GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS, CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxAtomicBuffers), extra_ARB_shader_atomic_counters },
306     { GL_MAX_FRAGMENT_ATOMIC_COUNTERS, CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxAtomicCounters), extra_ARB_shader_atomic_counters },
307     { GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS, CONTEXT_INT(Const.MaxCombinedAtomicBuffers), extra_ARB_shader_atomic_counters },
308     { GL_MAX_COMBINED_ATOMIC_COUNTERS, CONTEXT_INT(Const.MaxCombinedAtomicCounters), extra_ARB_shader_atomic_counters },
309     { GL_TEXTURE_BINDING_2D_MULTISAMPLE, LOC_CUSTOM, TYPE_INT, TEXTURE_2D_MULTISAMPLE_INDEX, extra_ARB_texture_multisample },
310     { GL_MAX_COLOR_TEXTURE_SAMPLES, CONTEXT_INT(Const.MaxColorTextureSamples), extra_ARB_texture_multisample },
311     { GL_MAX_DEPTH_TEXTURE_SAMPLES, CONTEXT_INT(Const.MaxDepthTextureSamples), extra_ARB_texture_multisample },
312     { GL_MAX_INTEGER_SAMPLES, CONTEXT_INT(Const.MaxIntegerSamples), extra_ARB_texture_multisample },
313     { GL_SAMPLE_MASK, CONTEXT_BOOL(Multisample.SampleMask), extra_ARB_texture_multisample },
314     { GL_MAX_SAMPLE_MASK_WORDS, CONST(1), extra_ARB_texture_multisample },
315     { GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY, LOC_CUSTOM, TYPE_INT, TEXTURE_2D_MULTISAMPLE_ARRAY_INDEX, extra_ARB_texture_multisample },
316     { GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET, CONTEXT_INT(Const.MinProgramTextureGatherOffset), extra_ARB_texture_gather },
317     { GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET, CONTEXT_INT(Const.MaxProgramTextureGatherOffset), extra_ARB_texture_gather },
318     { GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS, CONTEXT_INT(Const.MaxComputeWorkGroupInvocations), extra_ARB_compute_shader_es31 },
319     { GL_MAX_COMPUTE_UNIFORM_BLOCKS, CONTEXT_INT(Const.Program[MESA_SHADER_COMPUTE].MaxUniformBlocks), extra_ARB_compute_shader_es31 },
320     { GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS, CONTEXT_INT(Const.Program[MESA_SHADER_COMPUTE].MaxTextureImageUnits), extra_ARB_compute_shader_es31 },
321     { GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS, CONTEXT_INT(Const.Program[MESA_SHADER_COMPUTE].MaxAtomicBuffers), extra_ARB_compute_shader_es31 },
322     { GL_MAX_COMPUTE_ATOMIC_COUNTERS, CONTEXT_INT(Const.Program[MESA_SHADER_COMPUTE].MaxAtomicCounters), extra_ARB_compute_shader_es31 },
323     { GL_MAX_COMPUTE_SHARED_MEMORY_SIZE, CONTEXT_INT(Const.MaxComputeSharedMemorySize), extra_ARB_compute_shader_es31 },
324     { GL_MAX_COMPUTE_UNIFORM_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_COMPUTE].MaxUniformComponents), extra_ARB_compute_shader_es31 },
325     { GL_MAX_COMPUTE_IMAGE_UNIFORMS, CONTEXT_INT(Const.Program[MESA_SHADER_COMPUTE].MaxImageUniforms), extra_ARB_compute_shader_es31 },
326     { GL_DISPATCH_INDIRECT_BUFFER_BINDING, LOC_CUSTOM, TYPE_INT, 0, extra_ARB_compute_shader_es31 },
327     { GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_COMPUTE].MaxCombinedUniformComponents), extra_ARB_compute_shader_es31 },
328     { GL_MAX_FRAMEBUFFER_WIDTH, CONTEXT_INT(Const.MaxFramebufferWidth), extra_ARB_framebuffer_no_attachments },
329     { GL_MAX_FRAMEBUFFER_HEIGHT, CONTEXT_INT(Const.MaxFramebufferHeight), extra_ARB_framebuffer_no_attachments },
330     { GL_MAX_FRAMEBUFFER_SAMPLES, CONTEXT_INT(Const.MaxFramebufferSamples), extra_ARB_framebuffer_no_attachments },
331     { GL_MAX_FRAMEBUFFER_LAYERS, CONTEXT_INT(Const.MaxFramebufferLayers), extra_ARB_framebuffer_no_attachments_and_geometry_shader },
332     { GL_MAX_UNIFORM_LOCATIONS, CONTEXT_INT(Const.MaxUserAssignableUniformLocations), extra_ARB_explicit_uniform_location },
333     { GL_PROGRAM_PIPELINE_BINDING, LOC_CUSTOM, TYPE_INT, GL_PROGRAM_PIPELINE_BINDING, NO_EXTRA },
334     { GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET, CONTEXT_ENUM(Const.MaxVertexAttribRelativeOffset), NO_EXTRA },
335     { GL_MAX_VERTEX_ATTRIB_BINDINGS, CONTEXT_ENUM(Const.MaxVertexAttribBindings), NO_EXTRA },
336     { GL_MAX_VERTEX_ATTRIB_STRIDE, CONTEXT_ENUM(Const.MaxVertexAttribStride), NO_EXTRA },
337     { GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS, CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxShaderStorageBlocks), extra_ARB_shader_storage_buffer_object_es31 },
338     { GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS, CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxShaderStorageBlocks), extra_ARB_shader_storage_buffer_object_es31 },
339     { GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS, CONTEXT_INT(Const.Program[MESA_SHADER_COMPUTE].MaxShaderStorageBlocks), extra_ARB_shader_storage_buffer_object_es31 },
340     { GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS, CONTEXT_INT(Const.MaxCombinedShaderStorageBlocks), extra_ARB_shader_storage_buffer_object_es31 },
341     { GL_MAX_SHADER_STORAGE_BLOCK_SIZE, CONTEXT_INT(Const.MaxShaderStorageBlockSize), extra_ARB_shader_storage_buffer_object_es31 },
342     { GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS, CONTEXT_INT(Const.MaxShaderStorageBufferBindings), extra_ARB_shader_storage_buffer_object_es31 },
343     { GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT, CONTEXT_INT(Const.ShaderStorageBufferOffsetAlignment), extra_ARB_shader_storage_buffer_object_es31 },
344     { GL_SHADER_STORAGE_BUFFER_BINDING, LOC_CUSTOM, TYPE_INT, 0, extra_ARB_shader_storage_buffer_object_es31 },
345     { GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES, CONTEXT_INT(Const.MaxCombinedShaderOutputResources), extra_ARB_shader_image_load_store_shader_storage_buffer_object_es31 },
346     { GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB, LOC_CUSTOM, TYPE_INT, TEXTURE_CUBE_ARRAY_INDEX, extra_ARB_texture_cube_map_array_OES_texture_cube_map_array },
347     { GL_NUM_SHADING_LANGUAGE_VERSIONS, LOC_CUSTOM, TYPE_INT, 0, extra_version_43 },
348     { GL_MIN_FRAGMENT_INTERPOLATION_OFFSET, CONTEXT_FLOAT(Const.MinFragmentInterpolationOffset), extra_ARB_gpu_shader5_or_OES_sample_variables },
349     { GL_MAX_FRAGMENT_INTERPOLATION_OFFSET, CONTEXT_FLOAT(Const.MaxFragmentInterpolationOffset), extra_ARB_gpu_shader5_or_OES_sample_variables },
350     { GL_FRAGMENT_INTERPOLATION_OFFSET_BITS, CONST(FRAGMENT_INTERPOLATION_OFFSET_BITS), extra_ARB_gpu_shader5_or_OES_sample_variables },
351     { GL_DRAW_INDIRECT_BUFFER_BINDING, LOC_CUSTOM, TYPE_INT, 0, extra_ARB_draw_indirect },
352     { GL_MAX_GEOMETRY_INPUT_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxInputComponents), extra_version_32_OES_geometry_shader },
353     { GL_MAX_GEOMETRY_OUTPUT_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxOutputComponents), extra_version_32_OES_geometry_shader },
354     { GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS, CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxTextureImageUnits), extra_version_32_OES_geometry_shader },
355     { GL_MAX_GEOMETRY_OUTPUT_VERTICES, CONTEXT_INT(Const.MaxGeometryOutputVertices), extra_version_32_OES_geometry_shader },
356     { GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS, CONTEXT_INT(Const.MaxGeometryTotalOutputComponents), extra_version_32_OES_geometry_shader },
357     { GL_MAX_GEOMETRY_UNIFORM_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxUniformComponents), extra_version_32_OES_geometry_shader },
358     { GL_PATCH_VERTICES, CONTEXT_INT(TessCtrlProgram.patch_vertices), extra_ARB_tessellation_shader },
359     { GL_PATCH_DEFAULT_OUTER_LEVEL, CONTEXT_FLOAT4(TessCtrlProgram.patch_default_outer_level), extra_ARB_tessellation_shader },
360     { GL_PATCH_DEFAULT_INNER_LEVEL, CONTEXT_FLOAT2(TessCtrlProgram.patch_default_inner_level), extra_ARB_tessellation_shader },
361     { GL_MAX_TESS_GEN_LEVEL, CONTEXT_INT(Const.MaxTessGenLevel), extra_ARB_tessellation_shader },
362     { GL_MAX_PATCH_VERTICES, CONTEXT_INT(Const.MaxPatchVertices), extra_ARB_tessellation_shader },
363     { GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxUniformComponents), extra_ARB_tessellation_shader },
364     { GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxUniformComponents), extra_ARB_tessellation_shader },
365     { GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxTextureImageUnits), extra_ARB_tessellation_shader },
366     { GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxTextureImageUnits), extra_ARB_tessellation_shader },
367     { GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxOutputComponents), extra_ARB_tessellation_shader },
368     { GL_MAX_TESS_PATCH_COMPONENTS, CONTEXT_INT(Const.MaxTessPatchComponents), extra_ARB_tessellation_shader },
369     { GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS, CONTEXT_INT(Const.MaxTessControlTotalOutputComponents), extra_ARB_tessellation_shader },
370     { GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxOutputComponents), extra_ARB_tessellation_shader },
371     { GL_MAX_TESS_CONTROL_INPUT_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxInputComponents), extra_ARB_tessellation_shader },
372     { GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxInputComponents), extra_ARB_tessellation_shader },
373     { GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxUniformBlocks), extra_ARB_tessellation_shader },
374     { GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxUniformBlocks), extra_ARB_tessellation_shader },
375     { GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxCombinedUniformComponents), extra_ARB_tessellation_shader },
376     { GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxCombinedUniformComponents), extra_ARB_tessellation_shader },
377     { GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED, CONTEXT_BOOL(Const.PrimitiveRestartForPatches), extra_ARB_tessellation_shader },
378     { GL_MAX_GEOMETRY_IMAGE_UNIFORMS, CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxImageUniforms), extra_ARB_shader_image_load_store_and_geometry_shader },
379     { GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxImageUniforms), extra_ARB_shader_image_load_store_and_tessellation },
380     { GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxImageUniforms), extra_ARB_shader_image_load_store_and_tessellation },
381     { GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS, CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxAtomicBuffers), extra_ARB_shader_atomic_counters_and_geometry_shader  },
382     { GL_MAX_GEOMETRY_ATOMIC_COUNTERS, CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxAtomicCounters), extra_ARB_shader_atomic_counters_and_geometry_shader },
383     { GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxAtomicBuffers), extra_ARB_shader_atomic_counters_and_tessellation },
384     { GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxAtomicCounters), extra_ARB_shader_atomic_counters_and_tessellation },
385     { GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxAtomicBuffers), extra_ARB_shader_atomic_counters_and_tessellation },
386     { GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxAtomicCounters), extra_ARB_shader_atomic_counters_and_tessellation },
387     { GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS, CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxShaderStorageBlocks), extra_ARB_shader_storage_buffer_object_and_geometry_shader },
388     { GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxShaderStorageBlocks), extra_ARB_shader_storage_buffer_object },
389     { GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS, CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxShaderStorageBlocks), extra_ARB_shader_storage_buffer_object },
390     { GL_MAX_GEOMETRY_UNIFORM_BLOCKS, CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxUniformBlocks), extra_ARB_uniform_buffer_object_and_geometry_shader },
391     { GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS, CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxCombinedUniformComponents), extra_ARB_uniform_buffer_object_and_geometry_shader },
392     { GL_LAYER_PROVOKING_VERTEX, CONTEXT_ENUM(Const.LayerAndVPIndexProvokingVertex), extra_ARB_viewport_array_or_oes_geometry_shader },
393     { GL_MAX_GEOMETRY_SHADER_INVOCATIONS, CONST(MAX_GEOMETRY_SHADER_INVOCATIONS), extra_ARB_gpu_shader5_or_oes_geometry_shader },
394     { GL_PRIMITIVE_BOUNDING_BOX_ARB, CONTEXT_FLOAT8(PrimitiveBoundingBox), extra_OES_primitive_bounding_box },
395     { GL_MAX_VIEWPORTS, CONTEXT_INT(Const.MaxViewports), extra_ARB_viewport_array_or_oes_viewport_array },
396     { GL_VIEWPORT_SUBPIXEL_BITS, CONTEXT_INT(Const.ViewportSubpixelBits), extra_ARB_viewport_array_or_oes_viewport_array },
397     { GL_VIEWPORT_BOUNDS_RANGE, CONTEXT_FLOAT2(Const.ViewportBounds), extra_ARB_viewport_array_or_oes_viewport_array },
398     { GL_VIEWPORT_INDEX_PROVOKING_VERTEX, CONTEXT_ENUM(Const.LayerAndVPIndexProvokingVertex), extra_ARB_viewport_array_or_oes_viewport_array },
399     { GL_CONSERVATIVE_RASTERIZATION_INTEL, CONTEXT_BOOL(IntelConservativeRasterization), extra_INTEL_conservative_rasterization },
400     { GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB, CONTEXT_FLOAT2(Const.MinLineWidthAA), extra_ES32 },
401     { GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB, CONTEXT_FLOAT(Const.LineWidthGranularity), extra_ES32 },
402     { GL_CONTEXT_FLAGS, CONTEXT_INT(Const.ContextFlags), extra_version_30 },
403     { GL_ACCUM_RED_BITS, BUFFER_INT(Visual.accumRedBits), NO_EXTRA },
404     { GL_ACCUM_GREEN_BITS, BUFFER_INT(Visual.accumGreenBits), NO_EXTRA },
405     { GL_ACCUM_BLUE_BITS, BUFFER_INT(Visual.accumBlueBits), NO_EXTRA },
406     { GL_ACCUM_ALPHA_BITS, BUFFER_INT(Visual.accumAlphaBits), NO_EXTRA },
407     { GL_ACCUM_CLEAR_VALUE, CONTEXT_FIELD(Accum.ClearColor[0], TYPE_FLOATN_4), NO_EXTRA },
408     { GL_ALPHA_BIAS, CONTEXT_FLOAT(Pixel.AlphaBias), NO_EXTRA },
409     { GL_ALPHA_SCALE, CONTEXT_FLOAT(Pixel.AlphaScale), NO_EXTRA },
410     { GL_ATTRIB_STACK_DEPTH, CONTEXT_INT(AttribStackDepth), NO_EXTRA },
411     { GL_AUTO_NORMAL, CONTEXT_BOOL(Eval.AutoNormal), NO_EXTRA },
412     { GL_AUX_BUFFERS, BUFFER_INT(Visual.numAuxBuffers), NO_EXTRA },
413     { GL_BLUE_BIAS, CONTEXT_FLOAT(Pixel.BlueBias), NO_EXTRA },
414     { GL_BLUE_SCALE, CONTEXT_FLOAT(Pixel.BlueScale), NO_EXTRA },
415     { GL_CLIP_DEPTH_MODE, CONTEXT_ENUM(Transform.ClipDepthMode), extra_ARB_clip_control },
416     { GL_CLIP_ORIGIN, CONTEXT_ENUM(Transform.ClipOrigin), extra_ARB_clip_control },
417     { GL_CLIENT_ATTRIB_STACK_DEPTH, CONTEXT_INT(ClientAttribStackDepth), NO_EXTRA },
418     { GL_COLOR_MATERIAL_FACE, CONTEXT_ENUM(Light.ColorMaterialFace), NO_EXTRA },
419     { GL_COLOR_MATERIAL_PARAMETER, CONTEXT_ENUM(Light.ColorMaterialMode), NO_EXTRA },
420     { GL_CURRENT_INDEX, CONTEXT_FLOAT(Current.Attrib[VERT_ATTRIB_COLOR_INDEX][0]), extra_flush_current },
421     { GL_CURRENT_RASTER_COLOR, CONTEXT_FIELD(Current.RasterColor[0], TYPE_FLOATN_4), NO_EXTRA },
422     { GL_CURRENT_RASTER_DISTANCE, CONTEXT_FLOAT(Current.RasterDistance), NO_EXTRA },
423     { GL_CURRENT_RASTER_INDEX, CONST(1), NO_EXTRA },
424     { GL_CURRENT_RASTER_POSITION, CONTEXT_FLOAT4(Current.RasterPos[0]), NO_EXTRA },
425     { GL_CURRENT_RASTER_SECONDARY_COLOR, CONTEXT_FIELD(Current.RasterSecondaryColor[0], TYPE_FLOATN_4), NO_EXTRA },
426     { GL_CURRENT_RASTER_TEXTURE_COORDS, LOC_CUSTOM, TYPE_FLOAT_4, 0, extra_valid_texture_unit },
427     { GL_CURRENT_RASTER_POSITION_VALID, CONTEXT_BOOL(Current.RasterPosValid), NO_EXTRA },
428     { GL_DEPTH_BIAS, CONTEXT_FLOAT(Pixel.DepthBias), NO_EXTRA },
429     { GL_DEPTH_SCALE, CONTEXT_FLOAT(Pixel.DepthScale), NO_EXTRA },
430     { GL_DOUBLEBUFFER, BUFFER_INT(Visual.doubleBufferMode), NO_EXTRA },
431     { GL_DRAW_BUFFER, BUFFER_ENUM(ColorDrawBuffer[0]), NO_EXTRA },
432     { GL_EDGE_FLAG, LOC_CUSTOM, TYPE_BOOLEAN, 0, extra_flush_current },
433     { GL_FEEDBACK_BUFFER_SIZE, CONTEXT_INT(Feedback.BufferSize), NO_EXTRA },
434     { GL_FEEDBACK_BUFFER_TYPE, CONTEXT_ENUM(Feedback.Type), NO_EXTRA },
435     { GL_FOG_INDEX, CONTEXT_FLOAT(Fog.Index), NO_EXTRA },
436     { GL_GREEN_BIAS, CONTEXT_FLOAT(Pixel.GreenBias), NO_EXTRA },
437     { GL_GREEN_SCALE, CONTEXT_FLOAT(Pixel.GreenScale), NO_EXTRA },
438     { GL_INDEX_BITS, BUFFER_INT(Visual.indexBits), extra_new_buffers },
439     { GL_INDEX_CLEAR_VALUE, CONTEXT_INT(Color.ClearIndex), NO_EXTRA },
440     { GL_INDEX_MODE, CONST(0) , NO_EXTRA },
441     { GL_INDEX_OFFSET, CONTEXT_INT(Pixel.IndexOffset), NO_EXTRA },
442     { GL_INDEX_SHIFT, CONTEXT_INT(Pixel.IndexShift), NO_EXTRA },
443     { GL_INDEX_WRITEMASK, CONTEXT_INT(Color.IndexMask), NO_EXTRA },
444     { GL_LIGHT_MODEL_COLOR_CONTROL, CONTEXT_ENUM(Light.Model.ColorControl), NO_EXTRA },
445     { GL_LIGHT_MODEL_LOCAL_VIEWER, CONTEXT_BOOL(Light.Model.LocalViewer), NO_EXTRA },
446     { GL_LINE_STIPPLE, CONTEXT_BOOL(Line.StippleFlag), NO_EXTRA },
447     { GL_LINE_STIPPLE_PATTERN, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
448     { GL_LINE_STIPPLE_REPEAT, CONTEXT_INT(Line.StippleFactor), NO_EXTRA },
449     { GL_LINE_WIDTH_GRANULARITY, CONTEXT_FLOAT(Const.LineWidthGranularity), NO_EXTRA },
450     { GL_LIST_BASE, CONTEXT_INT(List.ListBase), NO_EXTRA },
451     { GL_LIST_INDEX, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
452     { GL_LIST_MODE, LOC_CUSTOM, TYPE_ENUM, 0, NO_EXTRA },
453     { GL_INDEX_LOGIC_OP, CONTEXT_BOOL(Color.IndexLogicOpEnabled), NO_EXTRA },
454     { GL_MAP1_COLOR_4, CONTEXT_BOOL(Eval.Map1Color4), NO_EXTRA },
455     { GL_MAP1_GRID_DOMAIN, CONTEXT_FLOAT2(Eval.MapGrid1u1), NO_EXTRA },
456     { GL_MAP1_GRID_SEGMENTS, CONTEXT_INT(Eval.MapGrid1un), NO_EXTRA },
457     { GL_MAP1_INDEX, CONTEXT_BOOL(Eval.Map1Index), NO_EXTRA },
458     { GL_MAP1_NORMAL, CONTEXT_BOOL(Eval.Map1Normal), NO_EXTRA },
459     { GL_MAP1_TEXTURE_COORD_1, CONTEXT_BOOL(Eval.Map1TextureCoord1), NO_EXTRA },
460     { GL_MAP1_TEXTURE_COORD_2, CONTEXT_BOOL(Eval.Map1TextureCoord2), NO_EXTRA },
461     { GL_MAP1_TEXTURE_COORD_3, CONTEXT_BOOL(Eval.Map1TextureCoord3), NO_EXTRA },
462     { GL_MAP1_TEXTURE_COORD_4, CONTEXT_BOOL(Eval.Map1TextureCoord4), NO_EXTRA },
463     { GL_MAP1_VERTEX_3, CONTEXT_BOOL(Eval.Map1Vertex3), NO_EXTRA },
464     { GL_MAP1_VERTEX_4, CONTEXT_BOOL(Eval.Map1Vertex4), NO_EXTRA },
465     { GL_MAP2_COLOR_4, CONTEXT_BOOL(Eval.Map2Color4), NO_EXTRA },
466     { GL_MAP2_GRID_DOMAIN, LOC_CUSTOM, TYPE_FLOAT_4, 0, NO_EXTRA },
467     { GL_MAP2_GRID_SEGMENTS, CONTEXT_INT2(Eval.MapGrid2un), NO_EXTRA },
468     { GL_MAP2_INDEX, CONTEXT_BOOL(Eval.Map2Index), NO_EXTRA },
469     { GL_MAP2_NORMAL, CONTEXT_BOOL(Eval.Map2Normal), NO_EXTRA },
470     { GL_MAP2_TEXTURE_COORD_1, CONTEXT_BOOL(Eval.Map2TextureCoord1), NO_EXTRA },
471     { GL_MAP2_TEXTURE_COORD_2, CONTEXT_BOOL(Eval.Map2TextureCoord2), NO_EXTRA },
472     { GL_MAP2_TEXTURE_COORD_3, CONTEXT_BOOL(Eval.Map2TextureCoord3), NO_EXTRA },
473     { GL_MAP2_TEXTURE_COORD_4, CONTEXT_BOOL(Eval.Map2TextureCoord4), NO_EXTRA },
474     { GL_MAP2_VERTEX_3, CONTEXT_BOOL(Eval.Map2Vertex3), NO_EXTRA },
475     { GL_MAP2_VERTEX_4, CONTEXT_BOOL(Eval.Map2Vertex4), NO_EXTRA },
476     { GL_MAP_COLOR, CONTEXT_BOOL(Pixel.MapColorFlag), NO_EXTRA },
477     { GL_MAP_STENCIL, CONTEXT_BOOL(Pixel.MapStencilFlag), NO_EXTRA },
478     { GL_MAX_ATTRIB_STACK_DEPTH, CONST(MAX_ATTRIB_STACK_DEPTH), NO_EXTRA },
479     { GL_MAX_CLIENT_ATTRIB_STACK_DEPTH, CONST(MAX_CLIENT_ATTRIB_STACK_DEPTH), NO_EXTRA },
480     { GL_MAX_EVAL_ORDER, CONST(MAX_EVAL_ORDER), NO_EXTRA },
481     { GL_MAX_LIST_NESTING, CONST(MAX_LIST_NESTING), NO_EXTRA },
482     { GL_MAX_NAME_STACK_DEPTH, CONST(MAX_NAME_STACK_DEPTH), NO_EXTRA },
483     { GL_MAX_PIXEL_MAP_TABLE, CONST(MAX_PIXEL_MAP_TABLE), NO_EXTRA },
484     { GL_NAME_STACK_DEPTH, CONTEXT_INT(Select.NameStackDepth), NO_EXTRA },
485     { GL_PACK_LSB_FIRST, CONTEXT_BOOL(Pack.LsbFirst), NO_EXTRA },
486     { GL_PACK_SWAP_BYTES, CONTEXT_BOOL(Pack.SwapBytes), NO_EXTRA },
487     { GL_PACK_INVERT_MESA, CONTEXT_BOOL(Pack.Invert), NO_EXTRA },
488     { GL_PIXEL_MAP_A_TO_A_SIZE, CONTEXT_INT(PixelMaps.AtoA.Size), NO_EXTRA },
489     { GL_PIXEL_MAP_B_TO_B_SIZE, CONTEXT_INT(PixelMaps.BtoB.Size), NO_EXTRA },
490     { GL_PIXEL_MAP_G_TO_G_SIZE, CONTEXT_INT(PixelMaps.GtoG.Size), NO_EXTRA },
491     { GL_PIXEL_MAP_I_TO_A_SIZE, CONTEXT_INT(PixelMaps.ItoA.Size), NO_EXTRA },
492     { GL_PIXEL_MAP_I_TO_B_SIZE, CONTEXT_INT(PixelMaps.ItoB.Size), NO_EXTRA },
493     { GL_PIXEL_MAP_I_TO_G_SIZE, CONTEXT_INT(PixelMaps.ItoG.Size), NO_EXTRA },
494     { GL_PIXEL_MAP_I_TO_I_SIZE, CONTEXT_INT(PixelMaps.ItoI.Size), NO_EXTRA },
495     { GL_PIXEL_MAP_I_TO_R_SIZE, CONTEXT_INT(PixelMaps.ItoR.Size), NO_EXTRA },
496     { GL_PIXEL_MAP_R_TO_R_SIZE, CONTEXT_INT(PixelMaps.RtoR.Size), NO_EXTRA },
497     { GL_PIXEL_MAP_S_TO_S_SIZE, CONTEXT_INT(PixelMaps.StoS.Size), NO_EXTRA },
498     { GL_POINT_SIZE_GRANULARITY, CONTEXT_FLOAT(Const.PointSizeGranularity), NO_EXTRA },
499     { GL_POLYGON_MODE, CONTEXT_ENUM2(Polygon.FrontMode), NO_EXTRA },
500     { GL_POLYGON_OFFSET_BIAS_EXT, CONTEXT_FLOAT(Polygon.OffsetUnits), NO_EXTRA },
501     { GL_POLYGON_OFFSET_POINT, CONTEXT_BOOL(Polygon.OffsetPoint), NO_EXTRA },
502     { GL_POLYGON_OFFSET_LINE, CONTEXT_BOOL(Polygon.OffsetLine), NO_EXTRA },
503     { GL_POLYGON_SMOOTH, CONTEXT_BOOL(Polygon.SmoothFlag), NO_EXTRA },
504     { GL_POLYGON_SMOOTH_HINT, CONTEXT_ENUM(Hint.PolygonSmooth), NO_EXTRA },
505     { GL_POLYGON_STIPPLE, CONTEXT_BOOL(Polygon.StippleFlag), NO_EXTRA },
506     { GL_RED_BIAS, CONTEXT_FLOAT(Pixel.RedBias), NO_EXTRA },
507     { GL_RED_SCALE, CONTEXT_FLOAT(Pixel.RedScale), NO_EXTRA },
508     { GL_RENDER_MODE, CONTEXT_ENUM(RenderMode), NO_EXTRA },
509     { GL_RGBA_MODE, CONST(1), NO_EXTRA },
510     { GL_SELECTION_BUFFER_SIZE, CONTEXT_INT(Select.BufferSize), NO_EXTRA },
511     { GL_STEREO, BUFFER_INT(Visual.stereoMode), NO_EXTRA },
512     { GL_TEXTURE_1D, LOC_CUSTOM, TYPE_BOOLEAN, NO_OFFSET, NO_EXTRA },
513     { GL_TEXTURE_3D, LOC_CUSTOM, TYPE_BOOLEAN, NO_OFFSET, NO_EXTRA },
514     { GL_TEXTURE_BINDING_1D, LOC_CUSTOM, TYPE_INT, TEXTURE_1D_INDEX, NO_EXTRA },
515     { GL_TEXTURE_BINDING_1D_ARRAY, LOC_CUSTOM, TYPE_INT, TEXTURE_1D_ARRAY_INDEX, extra_EXT_texture_array },
516     { GL_TEXTURE_GEN_S, LOC_TEXUNIT, TYPE_BIT_0, offsetof(struct gl_texture_unit, TexGenEnabled), NO_EXTRA },
517     { GL_TEXTURE_GEN_T, LOC_TEXUNIT, TYPE_BIT_1, offsetof(struct gl_texture_unit, TexGenEnabled), NO_EXTRA },
518     { GL_TEXTURE_GEN_R, LOC_TEXUNIT, TYPE_BIT_2, offsetof(struct gl_texture_unit, TexGenEnabled), NO_EXTRA },
519     { GL_TEXTURE_GEN_Q, LOC_TEXUNIT, TYPE_BIT_3, offsetof(struct gl_texture_unit, TexGenEnabled), NO_EXTRA },
520     { GL_UNPACK_LSB_FIRST, CONTEXT_BOOL(Unpack.LsbFirst), NO_EXTRA },
521     { GL_UNPACK_SWAP_BYTES, CONTEXT_BOOL(Unpack.SwapBytes), NO_EXTRA },
522     { GL_ZOOM_X, CONTEXT_FLOAT(Pixel.ZoomX), NO_EXTRA },
523     { GL_ZOOM_Y, CONTEXT_FLOAT(Pixel.ZoomY), NO_EXTRA },
524     { GL_VERTEX_ARRAY_COUNT_EXT, CONST(0), NO_EXTRA },
525     { GL_NORMAL_ARRAY_COUNT_EXT, CONST(0), NO_EXTRA },
526     { GL_COLOR_ARRAY_COUNT_EXT, CONST(0), NO_EXTRA },
527     { GL_INDEX_ARRAY, ARRAY_BOOL(VertexAttrib[VERT_ATTRIB_COLOR_INDEX].Enabled), NO_EXTRA },
528     { GL_INDEX_ARRAY_TYPE, ARRAY_ENUM(VertexAttrib[VERT_ATTRIB_COLOR_INDEX].Type), NO_EXTRA },
529     { GL_INDEX_ARRAY_STRIDE, ARRAY_INT(VertexAttrib[VERT_ATTRIB_COLOR_INDEX].Stride), NO_EXTRA },
530     { GL_INDEX_ARRAY_COUNT_EXT, CONST(0), NO_EXTRA },
531     { GL_TEXTURE_COORD_ARRAY_COUNT_EXT, CONST(0), NO_EXTRA },
532     { GL_EDGE_FLAG_ARRAY, ARRAY_BOOL(VertexAttrib[VERT_ATTRIB_EDGEFLAG].Enabled), NO_EXTRA },
533     { GL_EDGE_FLAG_ARRAY_STRIDE, ARRAY_INT(VertexAttrib[VERT_ATTRIB_EDGEFLAG].Stride), NO_EXTRA },
534     { GL_EDGE_FLAG_ARRAY_COUNT_EXT, CONST(0), NO_EXTRA },
535     { GL_TEXTURE_COMPRESSION_HINT_ARB, CONTEXT_INT(Hint.TextureCompression), NO_EXTRA },
536     { GL_ARRAY_ELEMENT_LOCK_FIRST_EXT, CONTEXT_INT(Array.LockFirst), NO_EXTRA },
537     { GL_ARRAY_ELEMENT_LOCK_COUNT_EXT, CONTEXT_INT(Array.LockCount), NO_EXTRA },
538     { GL_UNPACK_COMPRESSED_BLOCK_WIDTH, CONTEXT_INT(Unpack.CompressedBlockWidth), NO_EXTRA },
539     { GL_UNPACK_COMPRESSED_BLOCK_HEIGHT, CONTEXT_INT(Unpack.CompressedBlockHeight), NO_EXTRA },
540     { GL_UNPACK_COMPRESSED_BLOCK_DEPTH, CONTEXT_INT(Unpack.CompressedBlockDepth), NO_EXTRA },
541     { GL_UNPACK_COMPRESSED_BLOCK_SIZE, CONTEXT_INT(Unpack.CompressedBlockSize), NO_EXTRA },
542     { GL_PACK_COMPRESSED_BLOCK_WIDTH, CONTEXT_INT(Pack.CompressedBlockWidth), NO_EXTRA },
543     { GL_PACK_COMPRESSED_BLOCK_HEIGHT, CONTEXT_INT(Pack.CompressedBlockHeight), NO_EXTRA },
544     { GL_PACK_COMPRESSED_BLOCK_DEPTH, CONTEXT_INT(Pack.CompressedBlockDepth), NO_EXTRA },
545     { GL_PACK_COMPRESSED_BLOCK_SIZE, CONTEXT_INT(Pack.CompressedBlockSize), NO_EXTRA },
546     { GL_TRANSPOSE_MODELVIEW_MATRIX_ARB, CONTEXT_MATRIX_T(ModelviewMatrixStack), NO_EXTRA },
547     { GL_TRANSPOSE_PROJECTION_MATRIX_ARB, CONTEXT_MATRIX_T(ProjectionMatrixStack.Top), NO_EXTRA },
548     { GL_TRANSPOSE_TEXTURE_MATRIX_ARB, CONTEXT_MATRIX_T(TextureMatrixStack), NO_EXTRA },
549     { GL_COLOR_SUM, CONTEXT_BOOL(Fog.ColorSumEnabled), NO_EXTRA },
550     { GL_CURRENT_SECONDARY_COLOR, CONTEXT_FIELD(Current.Attrib[VERT_ATTRIB_COLOR1][0], TYPE_FLOATN_4), extra_flush_current },
551     { GL_SECONDARY_COLOR_ARRAY, ARRAY_BOOL(VertexAttrib[VERT_ATTRIB_COLOR1].Enabled), NO_EXTRA },
552     { GL_SECONDARY_COLOR_ARRAY_TYPE, ARRAY_ENUM(VertexAttrib[VERT_ATTRIB_COLOR1].Type), NO_EXTRA },
553     { GL_SECONDARY_COLOR_ARRAY_STRIDE, ARRAY_INT(VertexAttrib[VERT_ATTRIB_COLOR1].Stride), NO_EXTRA },
554     { GL_SECONDARY_COLOR_ARRAY_SIZE, LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA },
555     { GL_CURRENT_FOG_COORDINATE, CONTEXT_FLOAT(Current.Attrib[VERT_ATTRIB_FOG][0]), extra_flush_current },
556     { GL_FOG_COORDINATE_ARRAY, ARRAY_BOOL(VertexAttrib[VERT_ATTRIB_FOG].Enabled), NO_EXTRA },
557     { GL_FOG_COORDINATE_ARRAY_TYPE, ARRAY_ENUM(VertexAttrib[VERT_ATTRIB_FOG].Type), NO_EXTRA },
558     { GL_FOG_COORDINATE_ARRAY_STRIDE, ARRAY_INT(VertexAttrib[VERT_ATTRIB_FOG].Stride), NO_EXTRA },
559     { GL_FOG_COORDINATE_SOURCE, CONTEXT_ENUM(Fog.FogCoordinateSource), NO_EXTRA },
560     { GL_FOG_DISTANCE_MODE_NV, CONTEXT_ENUM(Fog.FogDistanceMode), extra_NV_fog_distance },
561     { GL_RASTER_POSITION_UNCLIPPED_IBM, CONTEXT_BOOL(Transform.RasterPositionUnclipped), NO_EXTRA },
562     { GL_POINT_SPRITE_R_MODE_NV, CONTEXT_ENUM(Point.SpriteRMode), extra_NV_point_sprite },
563     { GL_POINT_SPRITE_COORD_ORIGIN, CONTEXT_ENUM(Point.SpriteOrigin), extra_NV_point_sprite_ARB_point_sprite },
564     { GL_TEXTURE_RECTANGLE_NV, LOC_CUSTOM, TYPE_BOOLEAN, 0, extra_NV_texture_rectangle },
565     { GL_TEXTURE_BINDING_RECTANGLE_NV, LOC_CUSTOM, TYPE_INT, TEXTURE_RECT_INDEX, extra_NV_texture_rectangle },
566     { GL_MAX_RECTANGLE_TEXTURE_SIZE_NV, CONTEXT_INT(Const.MaxTextureRectSize), extra_NV_texture_rectangle },
567     { GL_STENCIL_TEST_TWO_SIDE_EXT, CONTEXT_BOOL(Stencil.TestTwoSide), extra_EXT_stencil_two_side },
568     { GL_ACTIVE_STENCIL_FACE_EXT, LOC_CUSTOM, TYPE_ENUM, NO_OFFSET, NO_EXTRA },
569     { GL_MAX_SHININESS_NV, CONTEXT_FLOAT(Const.MaxShininess), NO_EXTRA },
570     { GL_MAX_SPOT_EXPONENT_NV, CONTEXT_FLOAT(Const.MaxSpotExponent), NO_EXTRA },
571     { GL_PRIMITIVE_RESTART_NV, CONTEXT_BOOL(Array.PrimitiveRestart), extra_NV_primitive_restart },
572     { GL_PRIMITIVE_RESTART_INDEX_NV, CONTEXT_INT(Array.RestartIndex), extra_NV_primitive_restart },
573     { GL_INDEX_ARRAY_BUFFER_BINDING_ARB, LOC_CUSTOM, TYPE_INT, offsetof(struct gl_vertex_array_object, BufferBinding[VERT_ATTRIB_COLOR_INDEX].BufferObj), NO_EXTRA },
574     { GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB, LOC_CUSTOM, TYPE_INT, offsetof(struct gl_vertex_array_object, BufferBinding[VERT_ATTRIB_EDGEFLAG].BufferObj), NO_EXTRA },
575     { GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB, LOC_CUSTOM, TYPE_INT, offsetof(struct gl_vertex_array_object, BufferBinding[VERT_ATTRIB_COLOR1].BufferObj), NO_EXTRA },
576     { GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB, LOC_CUSTOM, TYPE_INT, offsetof(struct gl_vertex_array_object, BufferBinding[VERT_ATTRIB_FOG].BufferObj), NO_EXTRA },
577     { GL_VERTEX_PROGRAM_ARB, CONTEXT_BOOL(VertexProgram.Enabled), extra_ARB_vertex_program },
578     { GL_VERTEX_PROGRAM_POINT_SIZE_ARB, CONTEXT_BOOL(VertexProgram.PointSizeEnabled), extra_ARB_vertex_program },
579     { GL_VERTEX_PROGRAM_TWO_SIDE_ARB, CONTEXT_BOOL(VertexProgram.TwoSideEnabled), extra_ARB_vertex_program },
580     { GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB, CONTEXT_INT(Const.MaxProgramMatrixStackDepth), extra_ARB_vertex_program_ARB_fragment_program },
581     { GL_MAX_PROGRAM_MATRICES_ARB, CONTEXT_INT(Const.MaxProgramMatrices), extra_ARB_vertex_program_ARB_fragment_program },
582     { GL_CURRENT_MATRIX_STACK_DEPTH_ARB, LOC_CUSTOM, TYPE_INT, 0, extra_ARB_vertex_program_ARB_fragment_program },
583     { GL_CURRENT_MATRIX_ARB, LOC_CUSTOM, TYPE_MATRIX, 0, extra_ARB_vertex_program_ARB_fragment_program },
584     { GL_TRANSPOSE_CURRENT_MATRIX_ARB, LOC_CUSTOM, TYPE_MATRIX_T, 0, extra_ARB_vertex_program_ARB_fragment_program },
585     { GL_PROGRAM_ERROR_POSITION_ARB, CONTEXT_INT(Program.ErrorPos), extra_ARB_vertex_program_ARB_fragment_program },
586     { GL_FRAGMENT_PROGRAM_ARB, CONTEXT_BOOL(FragmentProgram.Enabled), extra_ARB_fragment_program },
587     { GL_RGBA_SIGNED_COMPONENTS_EXT, LOC_CUSTOM, TYPE_INT_4, 0, extra_EXT_packed_float },
588     { GL_DEPTH_BOUNDS_TEST_EXT, CONTEXT_BOOL(Depth.BoundsTest), extra_EXT_depth_bounds_test },
589     { GL_DEPTH_BOUNDS_EXT, CONTEXT_FLOAT2(Depth.BoundsMin), extra_EXT_depth_bounds_test },
590     { GL_DEPTH_CLAMP, CONTEXT_BOOL(Transform.DepthClamp), extra_ARB_depth_clamp },
591     { GL_FRAGMENT_SHADER_ATI, CONTEXT_BOOL(ATIFragmentShader.Enabled), extra_ATI_fragment_shader },
592     { GL_NUM_FRAGMENT_REGISTERS_ATI, CONST(6), extra_ATI_fragment_shader },
593     { GL_NUM_FRAGMENT_CONSTANTS_ATI, CONST(8), extra_ATI_fragment_shader },
594     { GL_NUM_PASSES_ATI, CONST(2), extra_ATI_fragment_shader },
595     { GL_NUM_INSTRUCTIONS_PER_PASS_ATI, CONST(8), extra_ATI_fragment_shader },
596     { GL_NUM_INSTRUCTIONS_TOTAL_ATI, CONST(16), extra_ATI_fragment_shader },
597     { GL_COLOR_ALPHA_PAIRING_ATI, CONST(GL_TRUE), extra_ATI_fragment_shader },
598     { GL_NUM_LOOPBACK_COMPONENTS_ATI, CONST(3), extra_ATI_fragment_shader },
599     { GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI, CONST(3), extra_ATI_fragment_shader },
600     { GL_PROVOKING_VERTEX_EXT, CONTEXT_ENUM(Light.ProvokingVertex), extra_EXT_provoking_vertex },
601     { GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT, CONTEXT_BOOL(Const.QuadsFollowProvokingVertexConvention), extra_EXT_provoking_vertex_32 },
602     { GL_TEXTURE_CUBE_MAP_SEAMLESS, CONTEXT_BOOL(Texture.CubeMapSeamless), extra_ARB_seamless_cube_map },
603     { GL_RGBA_INTEGER_MODE_EXT, LOC_CUSTOM, TYPE_INT, 0, extra_EXT_texture_integer_and_new_buffers },
604     { GL_MAX_TRANSFORM_FEEDBACK_BUFFERS, CONTEXT_INT(Const.MaxTransformFeedbackBuffers), extra_ARB_transform_feedback3 },
605     { GL_MAX_VERTEX_STREAMS, CONTEXT_INT(Const.MaxVertexStreams), extra_ARB_transform_feedback3_ARB_gpu_shader5 },
606     { GL_RGBA_FLOAT_MODE_ARB, BUFFER_FIELD(Visual.floatMode, TYPE_BOOLEAN), extra_core_ARB_color_buffer_float_and_new_buffers },
607     { GL_FRAMEBUFFER_SRGB_EXT, CONTEXT_BOOL(Color.sRGBEnabled), extra_EXT_framebuffer_sRGB },
608     { GL_FRAMEBUFFER_SRGB_CAPABLE_EXT, BUFFER_INT(Visual.sRGBCapable), extra_EXT_framebuffer_sRGB_and_new_buffers },
609     { GL_PRIMITIVE_RESTART, CONTEXT_BOOL(Array.PrimitiveRestart), extra_version_31 },
610     { GL_PRIMITIVE_RESTART_INDEX, CONTEXT_INT(Array.RestartIndex), extra_version_31 },
611     { GL_CONTEXT_PROFILE_MASK, CONTEXT_INT(Const.ProfileMask), extra_version_32 },
612     { GL_TIMESTAMP, LOC_CUSTOM, TYPE_INT64, 0, extra_ARB_timer_query },
613     { GL_MIN_MAP_BUFFER_ALIGNMENT, CONTEXT_INT(Const.MinMapBufferAlignment), NO_EXTRA },
614     { GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB, CONTEXT_INT(Const.MaxProgramTextureGatherComponents), extra_ARB_texture_gather },
615     { GL_MAX_IMAGE_SAMPLES, CONTEXT_INT(Const.MaxImageSamples), extra_ARB_shader_image_load_store },
616     { GL_QUERY_BUFFER_BINDING, LOC_CUSTOM, TYPE_INT, 0, extra_ARB_query_buffer_object },
617     { GL_VBO_FREE_MEMORY_ATI, LOC_CUSTOM, TYPE_INT_4, NO_OFFSET, extra_ATI_meminfo },
618     { GL_TEXTURE_FREE_MEMORY_ATI, LOC_CUSTOM, TYPE_INT_4, NO_OFFSET, extra_ATI_meminfo },
619     { GL_RENDERBUFFER_FREE_MEMORY_ATI, LOC_CUSTOM, TYPE_INT_4, NO_OFFSET, extra_ATI_meminfo },
620     { GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX, LOC_CUSTOM, TYPE_INT, NO_OFFSET, extra_NVX_gpu_memory_info },
621     { GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX, LOC_CUSTOM, TYPE_INT, NO_OFFSET, extra_NVX_gpu_memory_info },
622     { GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX, LOC_CUSTOM, TYPE_INT, NO_OFFSET, extra_NVX_gpu_memory_info },
623     { GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX, LOC_CUSTOM, TYPE_INT, NO_OFFSET, extra_NVX_gpu_memory_info },
624     { GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX, LOC_CUSTOM, TYPE_INT, NO_OFFSET, extra_NVX_gpu_memory_info },
625     { GL_MAX_CULL_DISTANCES, CONTEXT_INT(Const.MaxClipPlanes), extra_ARB_cull_distance },
626     { GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES, CONTEXT_INT(Const.MaxClipPlanes), extra_ARB_cull_distance },
627     { GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB, CONTEXT_INT(Const.MaxComputeVariableGroupInvocations), extra_ARB_compute_variable_group_size },
628     { GL_SPARSE_BUFFER_PAGE_SIZE_ARB, CONTEXT_INT(Const.SparseBufferPageSize), extra_ARB_sparse_buffer },
629     { GL_MAX_SUBROUTINES, CONST(MAX_SUBROUTINES), NO_EXTRA },
630     { GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS, CONST(MAX_SUBROUTINE_UNIFORM_LOCATIONS), NO_EXTRA },
631     { GL_PARAMETER_BUFFER_BINDING_ARB, LOC_CUSTOM, TYPE_INT, 0, extra_ARB_indirect_parameters },
632 };
633 
634 static table_t table_API_OPENGL = {
635       92,  533,  471,    0,
636      149,  210,    0,    0,
637        0,  475,    0,  118,
638      284,    0,    0,    0,
639        0,    0,  317,  579,
640      262,  241,    0,  609,
641        0,    0,    0,  453,
642        0,    0,    0,  476,
643      585,    0,  191,  333,
644        0,    0,  176,  161,
645      508,  144,  150,    6,
646        0,    0,    0,    0,
647      320,    0,    0,  266,
648      151,    0,  442,    0,
649       64,  600,    0,    0,
650        0,  237,  326,    0,
651      576,    0,    0,  225,
652        0,    0,  467,  289,
653        0,  589,  399,   86,
654      537,  500,  232,    0,
655        0,  438,    0,  276,
656      155,    0,    0,    0,
657      249,   93,  534,    0,
658        0,  154,    0,    0,
659      120,  248,  444,    0,
660      406,  285,  300,    0,
661        0,    0,    0,  318,
662      291,    0,  396,    0,
663        0,    0,    0,    0,
664      454,    0,    0,    0,
665      134,    0,    0,  193,
666      242,    0,    0,  177,
667      277,   43,  128,    0,
668      196,    0,    0,    0,
669        0,  411,   73,    0,
670        0,  412,    0,    0,
671      143,  619,    0,    0,
672      574,    0,  303,    0,
673        0,  577,    0,    0,
674      224,  556,    0,  468,
675        0,    0,  590,  400,
676       85,  538,  516,   80,
677       20,    0,    0,  214,
678      527,  159,  545,  614,
679      434,  565,   94,    0,
680      435,    0,  136,    0,
681      578,  429,  264,  445,
682        0,  417,    0,  302,
683        0,    0,  561,    0,
684      315,    0,    0,    0,
685        0,  427,    0,    0,
686        0,  455,    0,    0,
687       42,  135,  244,    0,
688      192,  336,    0,    0,
689      178,  163,  219,  452,
690      581,  198,    0,    0,
691      106,    0,    0,   74,
692        0,    0,  413,    0,
693        0,  141,  620,    0,
694      297,    0,  403,  309,
695      598,  308,   82,  255,
696        0,  226,    0,    0,
697      469,    0,    0,  593,
698        0,   83,  539,  517,
699      234,   21,    0,    0,
700      212,  528,  162,  419,
701      615,  503,  566,   95,
702        0,  501,  240,  148,
703       39,    0,  122,  265,
704        0,    0,  420,    0,
705      296,  107,    0,  562,
706        0,  316,    0,    0,
707      571,    0,  428,    0,
708        0,    0,  456,    0,
709        0,  432,   23,  555,
710        0,   44,  335,    0,
711      488,  567,  164,  139,
712      124,   54,  199,    0,
713        0,    3,    0,    0,
714        0,    0,    0,  115,
715      493,    0,  142,  235,
716        0,    0,    0,    0,
717        0,  404,  327,   84,
718        0,    0,    0,    0,
719      449,  601,    0,    0,
720      592,    0,    0,    0,
721      431,  479,    0,  338,
722      607,  213,    0,  521,
723      510,  616,  424,  554,
724       96,    0,    0,    0,
725      153,   33,  466,  126,
726      208,    0,    0,  418,
727        0,  328,  108,    0,
728        0,    0,  321,  584,
729        0,    0,    0,    0,
730        0,  415,    0,  457,
731      405,  247,   29,  473,
732        0,  595,  559,  197,
733       50,  491,  179,  165,
734      187,  552,    0,  200,
735       30,    0,    2,    0,
736      238,  334,    0,    0,
737      481,  497,  218,  280,
738        0,  330,    0,    0,
739        0,    0,  575,    0,
740        0,  256,    0,    0,
741        0,  450,  602,    0,
742        0,  591,    0,  563,
743      474,  250,  188,  312,
744        0,    0,   75,  273,
745      166,  180,  617,  505,
746      509,   97,    0,    0,
747      103,   77,   35,    0,
748      123,  209,   71,    0,
749      421,    0,  329,  109,
750        0,    0,    0,    0,
751        0,    0,  557,  274,
752      504,    0,    0,    0,
753      458,    0,    0,   17,
754        0,  245,  304,    0,
755       46,   49,  489,  568,
756      520,   25,    0,    0,
757      201,   31,    0,    0,
758        0,    0,  604,    0,
759       12,    0,  499,    0,
760      278,    0,    0,    0,
761        0,  603,    0,    0,
762      610,    0,  257,    0,
763       27,    0,  460,  313,
764        0,    0,    0,    0,
765      564,   91,   68,  190,
766        0,    0,    0,   76,
767      582,  526,  512,  618,
768        0,  271,   98,    0,
769        0,  104,  606,   40,
770        0,  125,    0,   72,
771      127,  416,  588,    0,
772      110,    0,    0,    0,
773        0,  307,    0,  252,
774      275,    0,    0,    0,
775      459,    0,  211,  246,
776        4,    0,  145,  305,
777      560,  171,   52,  487,
778      569,  522,   19,  550,
779      502,  202,    0,  611,
780        0,    0,  558,  608,
781        0,   13,    0,  426,
782        0,  279,    0,    0,
783      299,    0,   55,    0,
784        0,    0,    0,  259,
785      549,  495,    0,  461,
786      314,    0,    0,    0,
787      173,    0,   78,   69,
788      189,  269,  331,    0,
789       61,  583,  156,  513,
790        0,    0,    0,   99,
791      131,    0,  105,    0,
792       34,    0,  121,    0,
793      290,   18,    0,    0,
794      295,  111,    0,    0,
795        0,    0,    0,  482,
796      253,  525,    0,    0,
797        0,  462,    0,  215,
798        0,    1,    0,  146,
799      306,    0,  170,   51,
800      486,  174,  523,  507,
801      543,    0,  203,    0,
802      612,    0,    0,    0,
803      132,    0,   14,    0,
804        7,    0,  323,    0,
805       87,  301,    0,   56,
806        0,    0,  310,    0,
807      258,  551,  496,    0,
808      492,  319,    0,    0,
809        0,    0,    0,   22,
810       48,   24,    0,    0,
811        0,   62,    0,  157,
812        0,    0,   63,    0,
813      573,  447,  430,    0,
814        0,   36,    0,    0,
815      100,  339,  129,    0,
816        0,    0,  112,    0,
817        0,  233,    0,    0,
818        0,  254,    0,    0,
819      506,    0,  463,    0,
820      216,    0,    9,    0,
821      147,  251,    0,  540,
822        0,  485,   57,  524,
823        0,  544,    0,  204,
824      594,  613,    0,    0,
825        0,  138,    0,   10,
826      410,    8,  194,  325,
827      116,  341,  298,    0,
828        0,    0,    0,  311,
829        0,  260,    0,    0,
830        0,  498,    0,    0,
831      448,    0,    0,    0,
832      477,  402,    0,  270,
833        0,    0,   59,  553,
834      158,    0,    0,   28,
835      433,   53,  130,  408,
836      572,    0,   37,    0,
837        0,  439,    0,  443,
838        0,    0,    0,  113,
839        0,    0,  480,    0,
840        0,    0,    0,    0,
841      228,  152,    0,  464,
842        0,  217,  586,   32,
843        0,  119,  436,    0,
844      541,    0,  490,  175,
845      167,  186,  548,  294,
846      205,    0,  229,  605,
847       15,    0,   45,  221,
848       11,  409,   16,  195,
849      324,  414,    0,    0,
850        0,    0,    0,    0,
851        0,    0,    0,   90,
852        0,    0,  322,    0,
853      530,  451,    0,    0,
854        0,  472,  423,    0,
855      515,    0,    0,   60,
856       66,  518,    0,  596,
857       26,  437,  340,  529,
858      407,  267,    0,   38,
859      401,    0,  102,  622,
860      440,    0,    0,    0,
861      114,    0,    0,    0,
862       88,    0,    0,    0,
863        0,  227,    0,    0,
864      465,    0,  580,  587,
865      397,    0,  535,  172,
866      236,  542,  292,  484,
867       58,  168,  207,  546,
868      425,  286,    0,  230,
869      532,  470,    0,  137,
870        0,    0,  570,    0,
871      446,    0,  117,  288,
872        0,    0,    0,    0,
873        0,  337,    0,  261,
874      243,  621,    0,    0,
875        0,  531,   65,    0,
876        0,    0,  133,  422,
877        0,  514,  332,  519,
878        0,   67,  160,    0,
879      140,  494,    5,    0,
880        0,   70,  268,    0,
881       41,    0,    0,  101,
882        0,  441,    0,  599,
883       81,    0,    0,    0,
884        0,   89,  239,    0,
885      263,    0,  223,  511,
886        0,   79,  597,  206,
887      478,  398,  272,  536,
888       47,  231,    0,  293,
889      483,    0,  169,  220,
890      547,  222,  287,    0,
891 };
892 
893 static table_t table_API_OPENGLES = {
894       92,    0,    0,    0,
895      149,    0,    0,    0,
896        0,    0,    0,  118,
897        0,    0,    0,    0,
898        0,    0,    0,    0,
899        0,    0,    0,    0,
900        0,    0,    0,    0,
901        0,  283,    0,    0,
902        0,    0,    0,    0,
903        0,    0,  176,  161,
904        0,  144,  150,    6,
905        0,    0,    0,    0,
906        0,    0,    0,    0,
907      151,    0,    0,    0,
908       64,    0,    0,    0,
909        0,    0,    0,    0,
910        0,    0,    0,    0,
911        0,    0,    0,    0,
912        0,    0,    0,   86,
913        0,    0,    0,    0,
914        0,    0,    0,    0,
915      155,    0,    0,    0,
916        0,   93,    0,    0,
917        0,  154,    0,    0,
918      120,    0,    0,    0,
919        0,    0,    0,    0,
920        0,    0,    0,    0,
921        0,    0,    0,    0,
922        0,    0,    0,    0,
923        0,    0,    0,    0,
924      134,    0,    0,    0,
925        0,    0,    0,  177,
926        0,   43,  128,    0,
927        0,    0,    0,    0,
928        0,    0,   73,    0,
929        0,    0,    0,    0,
930      143,    0,    0,    0,
931        0,    0,    0,    0,
932        0,    0,    0,    0,
933        0,    0,    0,    0,
934        0,    0,    0,    0,
935       85,    0,    0,   80,
936       20,    0,    0,    0,
937        0,  159,    0,    0,
938        0,    0,   94,    0,
939        0,    0,  136,    0,
940        0,    0,    0,    0,
941        0,    0,    0,    0,
942        0,    0,    0,    0,
943        0,    0,    0,    0,
944        0,    0,    0,    0,
945        0,    0,    0,  282,
946       42,  135,    0,    0,
947        0,    0,    0,    0,
948      178,  163,    0,    0,
949        0,    0,    0,    0,
950      106,    0,    0,   74,
951        0,    0,    0,    0,
952        0,  141,    0,    0,
953        0,    0,    0,    0,
954        0,    0,   82,    0,
955        0,    0,    0,    0,
956        0,    0,  182,    0,
957        0,   83,    0,    0,
958        0,   21,    0,    0,
959        0,    0,  162,    0,
960        0,    0,    0,   95,
961        0,    0,    0,  148,
962       39,    0,  122,    0,
963        0,    0,    0,    0,
964        0,  107,    0,    0,
965        0,    0,    0,    0,
966        0,    0,    0,    0,
967        0,    0,    0,    0,
968        0,    0,   23,    0,
969        0,   44,    0,    0,
970        0,    0,  164,  139,
971      124,   54,    0,    0,
972        0,    3,    0,    0,
973      181,    0,    0,  115,
974        0,    0,  142,    0,
975        0,    0,    0,    0,
976        0,    0,    0,   84,
977        0,    0,    0,    0,
978        0,    0,    0,  183,
979        0,    0,    0,    0,
980        0,    0,    0,    0,
981        0,    0,    0,    0,
982        0,    0,    0,    0,
983       96,    0,    0,    0,
984      153,   33,    0,  126,
985        0,    0,    0,    0,
986        0,    0,  108,    0,
987        0,    0,    0,    0,
988        0,    0,    0,    0,
989        0,    0,    0,    0,
990        0,    0,   29,    0,
991        0,    0,    0,    0,
992       50,    0,  179,  165,
993        0,    0,    0,    0,
994       30,    0,    2,    0,
995        0,    0,    0,    0,
996        0,    0,    0,    0,
997        0,    0,    0,    0,
998        0,    0,    0,    0,
999        0,    0,    0,    0,
1000        0,    0,    0,    0,
1001        0,    0,    0,    0,
1002        0,    0,    0,    0,
1003        0,    0,   75,    0,
1004      166,  180,    0,    0,
1005        0,   97,    0,    0,
1006      103,   77,   35,    0,
1007      123,    0,   71,    0,
1008        0,    0,    0,  109,
1009        0,    0,    0,    0,
1010        0,    0,    0,    0,
1011        0,    0,    0,    0,
1012        0,    0,    0,   17,
1013        0,    0,    0,    0,
1014       46,   49,    0,    0,
1015        0,   25,    0,    0,
1016        0,   31,    0,    0,
1017        0,    0,    0,    0,
1018       12,    0,    0,    0,
1019        0,    0,    0,    0,
1020        0,    0,    0,    0,
1021        0,    0,    0,    0,
1022       27,    0,    0,    0,
1023        0,    0,    0,    0,
1024        0,   91,   68,    0,
1025        0,    0,    0,   76,
1026        0,    0,    0,    0,
1027        0,    0,   98,    0,
1028        0,  104,    0,   40,
1029        0,  125,    0,   72,
1030      127,    0,    0,    0,
1031      110,    0,    0,    0,
1032        0,    0,    0,    0,
1033        0,    0,    0,    0,
1034        0,    0,    0,    0,
1035        4,    0,  145,    0,
1036        0,  171,   52,    0,
1037        0,    0,   19,    0,
1038        0,    0,    0,    0,
1039        0,    0,    0,  184,
1040        0,   13,    0,    0,
1041        0,    0,    0,    0,
1042        0,    0,   55,    0,
1043        0,    0,    0,    0,
1044        0,    0,    0,    0,
1045        0,    0,    0,    0,
1046      173,    0,   78,   69,
1047        0,    0,    0,    0,
1048       61,    0,  156,    0,
1049        0,    0,    0,   99,
1050      131,    0,  105,    0,
1051       34,    0,  121,    0,
1052        0,   18,    0,    0,
1053        0,  111,    0,    0,
1054        0,    0,  281,    0,
1055        0,    0,    0,    0,
1056        0,    0,    0,    0,
1057        0,    1,    0,  146,
1058        0,    0,  170,   51,
1059        0,  174,    0,    0,
1060        0,    0,    0,    0,
1061        0,    0,    0,    0,
1062      132,    0,   14,    0,
1063        7,    0,    0,    0,
1064       87,    0,    0,   56,
1065        0,    0,    0,    0,
1066        0,    0,    0,    0,
1067        0,    0,    0,    0,
1068        0,    0,    0,   22,
1069       48,   24,    0,    0,
1070        0,   62,    0,  157,
1071        0,    0,   63,    0,
1072        0,    0,    0,    0,
1073        0,   36,    0,    0,
1074      100,    0,  129,    0,
1075        0,    0,  112,    0,
1076        0,    0,    0,    0,
1077        0,    0,    0,    0,
1078        0,    0,    0,    0,
1079        0,    0,    9,    0,
1080      147,    0,    0,    0,
1081        0,    0,   57,    0,
1082        0,    0,    0,    0,
1083        0,    0,    0,    0,
1084        0,  138,    0,   10,
1085        0,    8,    0,    0,
1086      116,    0,    0,    0,
1087        0,    0,    0,    0,
1088        0,    0,    0,    0,
1089        0,    0,    0,    0,
1090        0,    0,    0,    0,
1091        0,    0,    0,    0,
1092        0,    0,   59,    0,
1093      158,    0,    0,   28,
1094        0,   53,  130,    0,
1095        0,    0,   37,    0,
1096        0,    0,    0,    0,
1097        0,    0,    0,  113,
1098        0,    0,    0,    0,
1099        0,    0,    0,    0,
1100        0,  152,    0,    0,
1101        0,    0,    0,   32,
1102        0,  119,    0,    0,
1103        0,    0,    0,  175,
1104      167,    0,    0,    0,
1105        0,    0,    0,    0,
1106       15,    0,   45,    0,
1107       11,    0,   16,    0,
1108        0,    0,    0,    0,
1109        0,    0,    0,    0,
1110        0,    0,    0,   90,
1111        0,    0,    0,    0,
1112        0,    0,    0,    0,
1113        0,    0,    0,    0,
1114        0,    0,    0,   60,
1115       66,    0,    0,    0,
1116       26,    0,    0,    0,
1117        0,    0,    0,   38,
1118        0,    0,  102,    0,
1119        0,    0,    0,    0,
1120      114,    0,    0,    0,
1121       88,    0,    0,    0,
1122        0,    0,    0,    0,
1123        0,    0,    0,    0,
1124        0,    0,    0,  172,
1125        0,    0,    0,    0,
1126       58,  168,    0,    0,
1127        0,    0,    0,    0,
1128        0,    0,    0,  137,
1129        0,    0,    0,    0,
1130        0,    0,  117,    0,
1131        0,    0,    0,    0,
1132        0,    0,    0,    0,
1133        0,    0,    0,    0,
1134        0,    0,   65,    0,
1135        0,    0,  133,    0,
1136        0,    0,    0,    0,
1137        0,   67,  160,    0,
1138      140,    0,    5,    0,
1139        0,   70,    0,    0,
1140       41,    0,    0,  101,
1141        0,    0,    0,    0,
1142       81,    0,    0,    0,
1143        0,   89,    0,    0,
1144        0,    0,    0,    0,
1145        0,   79,    0,    0,
1146        0,    0,    0,    0,
1147       47,  240,    0,    0,
1148        0,    0,  169,    0,
1149        0,    0,    0,    0,
1150 };
1151 
1152 static table_t table_API_OPENGLES2 = {
1153      211,    0,    0,  185,
1154        0,  210,    0,    0,
1155        0,    0,    0,    0,
1156        0,    0,    0,    0,
1157        0,    0,    0,    0,
1158        0,    0,    0,    0,
1159        0,    0,    0,    0,
1160        0,  283,    0,    0,
1161        0,    0,  191,    0,
1162        0,    0,    0,    0,
1163        0,    0,    0,    6,
1164        0,    0,    0,    0,
1165        0,    0,    0,    0,
1166        0,    0,    0,    0,
1167       64,    0,    0,    0,
1168        0,  237,    0,    0,
1169        0,    0,    0,  225,
1170        0,    0,    0,    0,
1171        0,    0,    0,   86,
1172        0,    0,  232,    0,
1173        0,    0,    0,    0,
1174        0,    0,    0,    0,
1175        0,  215,    0,    0,
1176        0,    0,    0,    0,
1177        0,    0,    0,    0,
1178        0,    0,    0,    0,
1179        0,    0,    0,    0,
1180        0,    0,    0,    0,
1181        0,    0,    0,    0,
1182        0,    0,    0,    0,
1183        0,    0,    0,  193,
1184        0,    0,    0,    0,
1185        0,   43,    0,    0,
1186      196,    0,    0,    0,
1187        0,    0,   73,    0,
1188        0,    0,    0,    0,
1189        0,    0,    0,    0,
1190        0,    0,    0,    0,
1191        0,    0,    0,    0,
1192      224,    0,    0,    0,
1193        0,    0,    0,    0,
1194       85,    0,    0,   80,
1195       20,    0,    0,  214,
1196        0,    0,    0,    0,
1197        0,    0,  216,    0,
1198        0,    0,    0,    0,
1199        0,    0,    0,    0,
1200        0,    0,    0,    0,
1201        0,    0,    0,    0,
1202        0,    0,    0,    0,
1203        0,    0,    0,    0,
1204        0,    0,    0,  282,
1205       42,    0,    0,    0,
1206      192,    0,    0,    0,
1207        0,    0,  219,    0,
1208        0,  198,    0,    0,
1209        0,    0,    0,   74,
1210        0,    0,    0,    0,
1211        0,    0,    0,    0,
1212        0,    0,    0,    0,
1213        0,    0,   82,    0,
1214        0,  226,    0,    0,
1215        0,    0,    0,    0,
1216        0,   83,    0,    0,
1217      234,   21,    0,    0,
1218      212,    0,    0,    0,
1219        0,    0,    0,  217,
1220        0,    0,    0,    0,
1221       39,    0,    0,    0,
1222        0,    0,    0,    0,
1223        0,    0,    0,    0,
1224        0,    0,    0,    0,
1225        0,    0,    0,    0,
1226        0,    0,    0,    0,
1227        0,    0,   23,    0,
1228        0,   44,    0,    0,
1229        0,    0,    0,    0,
1230        0,   54,  199,    0,
1231        0,    3,    0,    0,
1232        0,    0,    0,    0,
1233        0,    0,    0,  235,
1234        0,    0,    0,    0,
1235        0,    0,    0,   84,
1236        0,    0,    0,    0,
1237        0,    0,    0,    0,
1238        0,    0,    0,    0,
1239        0,    0,    0,    0,
1240        0,  213,    0,    0,
1241        0,    0,    0,    0,
1242        0,    0,    0,    0,
1243        0,   33,    0,    0,
1244      208,    0,    0,    0,
1245        0,    0,    0,    0,
1246        0,    0,    0,    0,
1247        0,    0,    0,    0,
1248        0,    0,    0,    0,
1249        0,    0,   29,    0,
1250        0,    0,    0,  197,
1251       50,    0,    0,    0,
1252      187,    0,    0,  200,
1253       30,    0,    2,    0,
1254      238,    0,    0,    0,
1255        0,    0,  218,    0,
1256        0,    0,    0,    0,
1257        0,    0,    0,    0,
1258        0,    0,    0,    0,
1259        0,    0,    0,    0,
1260        0,    0,    0,    0,
1261        0,    0,  188,    0,
1262        0,    0,   75,    0,
1263        0,    0,    0,    0,
1264        0,  206,    0,    0,
1265      233,   77,   35,    0,
1266        0,  209,   71,    0,
1267        0,    0,    0,  222,
1268        0,    0,    0,    0,
1269        0,    0,    0,    0,
1270        0,    0,    0,    0,
1271        0,    0,    0,   17,
1272        0,    0,    0,    0,
1273       46,   49,    0,    0,
1274        0,   25,    0,    0,
1275      201,   31,    0,    0,
1276        0,    0,    0,    0,
1277       12,    0,    0,    0,
1278        0,    0,    0,    0,
1279        0,    0,    0,    0,
1280        0,    0,    0,    0,
1281       27,    0,    0,    0,
1282        0,    0,    0,    0,
1283        0,    0,   68,  190,
1284        0,    0,    0,   76,
1285        0,    0,    0,    0,
1286        0,    0,    0,    0,
1287        0,    0,    0,   40,
1288        0,    0,    0,   72,
1289        0,    0,    0,    0,
1290        0,    0,    0,    0,
1291        0,    0,    0,    0,
1292        0,    0,    0,    0,
1293        0,    0,    0,    0,
1294        4,    0,    0,    0,
1295        0,    0,   52,    0,
1296        0,    0,   19,    0,
1297        0,  202,    0,    0,
1298        0,    0,    0,    0,
1299        0,   13,    0,    0,
1300        0,    0,    0,    0,
1301        0,    0,   55,    0,
1302        0,    0,    0,    0,
1303        0,    0,    0,    0,
1304        0,    0,    0,    0,
1305        0,    0,   78,   69,
1306      189,    0,    0,    0,
1307       61,    0,    0,    0,
1308        0,    0,    0,    0,
1309        0,    0,    0,    0,
1310       34,    0,    0,    0,
1311        0,   18,    0,    0,
1312        0,    0,    0,    0,
1313        0,    0,  281,    0,
1314        0,    0,    0,    0,
1315        0,    0,    0,    0,
1316        0,    1,    0,    0,
1317        0,    0,    0,   51,
1318        0,    0,    0,    0,
1319        0,    0,  203,    0,
1320        0,    0,    0,    0,
1321        0,    0,   14,    0,
1322        7,    0,    0,    0,
1323       87,    0,    0,   56,
1324        0,    0,    0,    0,
1325        0,    0,    0,    0,
1326        0,    0,    0,    0,
1327        0,    0,    0,   22,
1328       48,   24,    0,    0,
1329        0,   62,    0,    0,
1330        0,    0,   63,    0,
1331        0,    0,    0,    0,
1332        0,   36,    0,    0,
1333        0,    0,    0,    0,
1334        0,    0,    0,    0,
1335        0,    0,    0,    0,
1336        0,    0,    0,    0,
1337        0,    0,    0,    0,
1338        0,    0,    9,    0,
1339        0,    0,    0,    0,
1340        0,    0,   57,    0,
1341        0,    0,    0,  204,
1342        0,    0,    0,    0,
1343        0,    0,    0,   10,
1344        0,    8,  194,    0,
1345        0,    0,    0,    0,
1346        0,    0,    0,    0,
1347        0,    0,    0,    0,
1348        0,    0,    0,    0,
1349        0,    0,    0,    0,
1350        0,    0,    0,    0,
1351        0,    0,   59,    0,
1352        0,    0,    0,   28,
1353        0,   53,    0,    0,
1354        0,    0,   37,    0,
1355        0,    0,    0,    0,
1356        0,    0,    0,    0,
1357        0,    0,    0,    0,
1358        0,    0,    0,    0,
1359      228,    0,    0,    0,
1360        0,    0,    0,   32,
1361        0,    0,    0,    0,
1362        0,    0,    0,    0,
1363        0,  186,    0,    0,
1364      205,    0,  229,    0,
1365       15,    0,   45,  221,
1366       11,    0,   16,  195,
1367        0,    0,    0,    0,
1368        0,    0,    0,    0,
1369        0,    0,    0,   90,
1370        0,    0,    0,    0,
1371        0,    0,    0,    0,
1372        0,    0,    0,    0,
1373        0,    0,    0,   60,
1374       66,    0,    0,    0,
1375       26,    0,    0,    0,
1376        0,    0,    0,   38,
1377        0,    0,    0,    0,
1378        0,    0,    0,    0,
1379        0,    0,    0,    0,
1380       88,    0,    0,    0,
1381        0,  227,    0,    0,
1382        0,    0,    0,    0,
1383        0,    0,    0,    0,
1384      236,    0,    0,    0,
1385       58,    0,  207,    0,
1386        0,    0,    0,  230,
1387        0,    0,    0,    0,
1388        0,    0,    0,    0,
1389        0,    0,    0,    0,
1390        0,    0,    0,    0,
1391        0,    0,    0,    0,
1392        0,    0,    0,    0,
1393        0,    0,   65,    0,
1394        0,    0,    0,    0,
1395        0,    0,    0,    0,
1396        0,   67,    0,    0,
1397        0,    0,    5,    0,
1398        0,   70,    0,    0,
1399       41,    0,    0,    0,
1400        0,    0,    0,    0,
1401       81,    0,    0,    0,
1402        0,   89,  239,    0,
1403        0,    0,  223,    0,
1404        0,   79,    0,    0,
1405        0,    0,    0,    0,
1406       47,  231,    0,    0,
1407        0,    0,    0,  220,
1408        0,    0,    0,    0,
1409 };
1410 
1411 static table_t table_API_OPENGLES3 = {
1412      211,    0,    0,  185,
1413        0,  210,    0,    0,
1414        0,    0,    0,    0,
1415        0,    0,    0,    0,
1416        0,    0,    0,    0,
1417      262,  241,    0,    0,
1418        0,    0,    0,    0,
1419        0,  283,    0,    0,
1420        0,    0,  191,    0,
1421        0,    0,    0,    0,
1422        0,    0,    0,    6,
1423        0,    0,    0,    0,
1424        0,    0,    0,  266,
1425        0,    0,    0,    0,
1426       64,    0,    0,    0,
1427        0,  237,    0,    0,
1428        0,    0,    0,  225,
1429        0,    0,    0,    0,
1430        0,    0,    0,   86,
1431        0,    0,  232,    0,
1432        0,    0,    0,  276,
1433        0,    0,    0,    0,
1434      249,  215,    0,    0,
1435        0,    0,    0,    0,
1436        0,  248,    0,    0,
1437        0,    0,    0,    0,
1438        0,    0,    0,    0,
1439        0,    0,    0,    0,
1440        0,    0,    0,    0,
1441        0,    0,    0,    0,
1442        0,    0,    0,  193,
1443      242,    0,    0,    0,
1444      277,   43,    0,    0,
1445      196,    0,    0,    0,
1446        0,    0,   73,    0,
1447        0,    0,    0,    0,
1448        0,    0,    0,    0,
1449        0,    0,    0,    0,
1450        0,    0,    0,    0,
1451      224,    0,    0,    0,
1452        0,    0,    0,    0,
1453       85,    0,    0,   80,
1454       20,    0,    0,  214,
1455        0,    0,    0,    0,
1456        0,    0,  216,    0,
1457        0,    0,    0,    0,
1458        0,    0,  264,    0,
1459        0,    0,    0,    0,
1460        0,    0,    0,    0,
1461        0,    0,    0,    0,
1462        0,    0,    0,    0,
1463        0,    0,    0,  282,
1464       42,    0,  244,    0,
1465      192,    0,    0,    0,
1466        0,    0,  219,    0,
1467        0,  198,    0,    0,
1468        0,    0,    0,   74,
1469        0,    0,    0,    0,
1470        0,    0,    0,    0,
1471        0,    0,    0,    0,
1472        0,    0,   82,  255,
1473        0,  226,    0,    0,
1474        0,    0,    0,    0,
1475        0,   83,    0,    0,
1476      234,   21,    0,    0,
1477      212,    0,    0,    0,
1478        0,    0,    0,  217,
1479        0,    0,  240,    0,
1480       39,    0,    0,  265,
1481        0,    0,    0,    0,
1482        0,    0,    0,    0,
1483      185,    0,    0,    0,
1484        0,    0,    0,    0,
1485        0,    0,    0,    0,
1486        0,    0,   23,    0,
1487        0,   44,    0,    0,
1488        0,    0,    0,    0,
1489        0,   54,  199,    0,
1490        0,    3,    0,    0,
1491        0,    0,    0,    0,
1492        0,    0,    0,  235,
1493        0,    0,    0,    0,
1494        0,    0,    0,   84,
1495        0,    0,    0,    0,
1496        0,    0,    0,    0,
1497        0,    0,    0,    0,
1498        0,    0,    0,    0,
1499        0,  213,    0,    0,
1500        0,    0,    0,    0,
1501        0,    0,    0,    0,
1502        0,   33,    0,    0,
1503      208,    0,    0,    0,
1504        0,    0,    0,    0,
1505        0,    0,    0,    0,
1506        0,    0,    0,    0,
1507        0,    0,    0,    0,
1508        0,  247,   29,    0,
1509        0,    0,    0,  197,
1510       50,    0,    0,    0,
1511      187,    0,    0,  200,
1512       30,    0,    2,    0,
1513      238,    0,    0,    0,
1514        0,    0,  218,  280,
1515        0,    0,    0,    0,
1516        0,    0,    0,  342,
1517        0,  256,    0,    0,
1518        0,    0,    0,    0,
1519        0,    0,    0,    0,
1520        0,  250,  188,    0,
1521        0,    0,   75,  273,
1522        0,    0,    0,    0,
1523        0,  206,    0,    0,
1524      233,   77,   35,    0,
1525        0,  209,   71,    0,
1526        0,    0,    0,  222,
1527        0,    0,    0,    0,
1528        0,    0,    0,    0,
1529        0,    0,    0,    0,
1530        0,    0,    0,   17,
1531        0,  245,    0,    0,
1532       46,   49,    0,    0,
1533        0,   25,    0,    0,
1534      201,   31,    0,    0,
1535        0,    0,    0,    0,
1536       12,    0,    0,    0,
1537      278,    0,    0,    0,
1538        0,    0,    0,    0,
1539      343,    0,  257,    0,
1540       27,    0,    0,    0,
1541        0,    0,    0,    0,
1542        0,    0,   68,  190,
1543        0,    0,    0,   76,
1544        0,    0,    0,    0,
1545        0,  271,    0,    0,
1546        0,    0,    0,   40,
1547        0,    0,    0,   72,
1548        0,    0,    0,    0,
1549        0,    0,    0,    0,
1550        0,    0,    0,  252,
1551        0,    0,    0,    0,
1552        0,    0,    0,  246,
1553        4,    0,    0,    0,
1554        0,    0,   52,    0,
1555        0,    0,   19,    0,
1556        0,  202,    0,    0,
1557        0,    0,    0,    0,
1558        0,   13,    0,    0,
1559        0,  279,    0,    0,
1560        0,    0,   55,    0,
1561        0,  344,    0,  259,
1562        0,    0,    0,    0,
1563        0,    0,    0,    0,
1564        0,    0,   78,   69,
1565      189,  269,    0,    0,
1566       61,    0,    0,    0,
1567        0,    0,    0,    0,
1568        0,    0,    0,    0,
1569       34,    0,    0,    0,
1570        0,   18,    0,    0,
1571        0,    0,    0,    0,
1572        0,    0,  281,    0,
1573      253,    0,    0,    0,
1574        0,    0,    0,    0,
1575        0,    1,    0,    0,
1576        0,    0,    0,   51,
1577        0,    0,    0,    0,
1578        0,    0,  203,    0,
1579        0,    0,    0,    0,
1580        0,    0,   14,    0,
1581        7,    0,    0,    0,
1582       87,    0,    0,   56,
1583        0,    0,    0,    0,
1584      258,    0,    0,    0,
1585        0,    0,    0,    0,
1586        0,    0,    0,   22,
1587       48,   24,    0,    0,
1588        0,   62,    0,    0,
1589        0,    0,   63,    0,
1590        0,    0,    0,    0,
1591        0,   36,    0,    0,
1592        0,    0,    0,    0,
1593        0,    0,    0,    0,
1594        0,  272,    0,    0,
1595        0,  254,    0,    0,
1596        0,    0,    0,    0,
1597        0,    0,    9,    0,
1598        0,  251,    0,    0,
1599        0,    0,   57,    0,
1600        0,    0,    0,  204,
1601        0,    0,    0,    0,
1602        0,    0,    0,   10,
1603        0,    8,  194,    0,
1604        0,    0,    0,    0,
1605        0,    0,    0,    0,
1606        0,  260,    0,    0,
1607        0,    0,    0,    0,
1608        0,    0,    0,    0,
1609        0,    0,    0,  270,
1610        0,    0,   59,    0,
1611        0,    0,    0,   28,
1612        0,   53,    0,    0,
1613        0,    0,   37,    0,
1614        0,    0,    0,    0,
1615        0,    0,    0,    0,
1616        0,    0,    0,    0,
1617        0,    0,    0,    0,
1618      228,    0,    0,    0,
1619        0,    0,    0,   32,
1620        0,    0,    0,    0,
1621        0,    0,    0,    0,
1622        0,  186,    0,    0,
1623      205,    0,  229,    0,
1624       15,    0,   45,  221,
1625       11,    0,   16,  195,
1626        0,    0,    0,    0,
1627        0,    0,    0,    0,
1628        0,    0,    0,   90,
1629        0,    0,    0,    0,
1630        0,    0,    0,    0,
1631        0,    0,    0,    0,
1632        0,    0,    0,   60,
1633       66,    0,    0,    0,
1634       26,    0,    0,    0,
1635        0,  267,    0,   38,
1636        0,    0,    0,    0,
1637        0,    0,    0,    0,
1638        0,    0,    0,    0,
1639       88,    0,    0,    0,
1640        0,  227,    0,    0,
1641        0,    0,    0,    0,
1642        0,    0,    0,    0,
1643      236,    0,    0,    0,
1644       58,  274,  207,    0,
1645        0,    0,    0,  230,
1646        0,    0,    0,    0,
1647        0,    0,    0,    0,
1648        0,    0,    0,    0,
1649        0,    0,    0,    0,
1650        0,    0,    0,  261,
1651      243,    0,    0,    0,
1652        0,    0,   65,    0,
1653        0,    0,    0,    0,
1654        0,    0,    0,    0,
1655        0,   67,    0,    0,
1656        0,    0,    5,    0,
1657        0,   70,  268,    0,
1658       41,    0,    0,    0,
1659        0,    0,    0,    0,
1660       81,    0,    0,    0,
1661        0,   89,  239,    0,
1662      263,    0,  223,    0,
1663        0,   79,    0,    0,
1664        0,    0,    0,    0,
1665       47,  231,    0,    0,
1666        0,    0,  275,  220,
1667        0,    0,    0,    0,
1668 };
1669 
1670 static table_t table_API_OPENGLES31 = {
1671      211,    0,    0,  185,
1672        0,  210,    0,    0,
1673        0,    0,    0,    0,
1674      284,  376,  388,    0,
1675        0,    0,  317,    0,
1676      262,  241,    0,  366,
1677        0,    0,    0,    0,
1678        0,  283,    0,    0,
1679      392,    0,  191,  333,
1680        0,    0,    0,    0,
1681        0,    0,    0,    6,
1682        0,    0,    0,    0,
1683      320,    0,    0,  266,
1684        0,    0,    0,    0,
1685       64,    0,    0,    0,
1686        0,  237,  326,    0,
1687        0,    0,    0,  225,
1688        0,    0,    0,  289,
1689        0,    0,    0,   86,
1690        0,    0,  232,    0,
1691        0,    0,    0,  276,
1692        0,    0,    0,    0,
1693      249,  215,    0,    0,
1694        0,    0,    0,    0,
1695        0,  248,    0,    0,
1696        0,  285,  300,  393,
1697        0,    0,    0,  318,
1698      291,    0,  369,    0,
1699        0,    0,    0,    0,
1700        0,    0,    0,    0,
1701        0,    0,    0,  193,
1702      242,    0,    0,    0,
1703      277,   43,    0,    0,
1704      196,    0,    0,    0,
1705        0,    0,   73,    0,
1706        0,    0,    0,    0,
1707        0,    0,    0,    0,
1708        0,    0,  303,    0,
1709        0,    0,    0,    0,
1710      224,    0,    0,    0,
1711        0,    0,    0,    0,
1712       85,    0,    0,   80,
1713       20,    0,    0,  214,
1714        0,    0,    0,    0,
1715        0,    0,  216,    0,
1716        0,    0,    0,    0,
1717        0,    0,  264,    0,
1718        0,    0,    0,  302,
1719        0,    0,    0,    0,
1720      315,    0,    0,  370,
1721        0,    0,    0,    0,
1722        0,    0,    0,  282,
1723       42,    0,  244,    0,
1724      192,  336,    0,    0,
1725        0,    0,  219,    0,
1726        0,  198,    0,    0,
1727        0,    0,    0,   74,
1728        0,    0,    0,    0,
1729        0,    0,    0,    0,
1730      297,    0,  389,  309,
1731        0,  308,   82,  255,
1732        0,  226,    0,    0,
1733        0,    0,    0,    0,
1734        0,   83,    0,    0,
1735      234,   21,    0,    0,
1736      212,    0,    0,    0,
1737        0,    0,    0,  217,
1738        0,    0,  240,    0,
1739       39,    0,    0,  265,
1740        0,    0,    0,    0,
1741      296,  294,    0,    0,
1742      185,  316,    0,    0,
1743        0,    0,    0,    0,
1744        0,    0,    0,    0,
1745        0,    0,   23,  346,
1746        0,   44,  335,    0,
1747        0,    0,    0,    0,
1748        0,   54,  199,    0,
1749        0,    3,    0,    0,
1750        0,    0,    0,    0,
1751        0,    0,    0,  235,
1752        0,  377,    0,    0,
1753        0,    0,  327,   84,
1754      384,    0,    0,    0,
1755        0,    0,    0,    0,
1756        0,    0,  363,    0,
1757        0,    0,    0,  338,
1758        0,  213,    0,    0,
1759        0,    0,    0,    0,
1760        0,    0,    0,    0,
1761        0,   33,    0,    0,
1762      208,    0,    0,    0,
1763        0,  328,    0,    0,
1764        0,  356,  321,    0,
1765        0,  371,    0,    0,
1766        0,    0,    0,    0,
1767        0,  247,   29,    0,
1768      347,    0,    0,  197,
1769       50,    0,    0,    0,
1770      187,    0,    0,  200,
1771       30,    0,    2,    0,
1772      238,  334,    0,    0,
1773        0,    0,  218,  280,
1774        0,  330,  379,    0,
1775        0,  367,  352,  342,
1776        0,  256,    0,    0,
1777        0,    0,    0,    0,
1778        0,    0,    0,  364,
1779        0,  250,  188,  312,
1780        0,    0,   75,  273,
1781        0,    0,    0,    0,
1782        0,  206,    0,    0,
1783      233,   77,   35,    0,
1784        0,  209,   71,    0,
1785        0,    0,  329,  222,
1786        0,    0,  355,    0,
1787        0,    0,    0,    0,
1788        0,    0,    0,    0,
1789        0,    0,    0,   17,
1790        0,  245,  304,    0,
1791       46,   49,    0,    0,
1792        0,   25,    0,    0,
1793      201,   31,    0,    0,
1794        0,    0,    0,    0,
1795       12,    0,    0,    0,
1796      278,    0,    0,  375,
1797        0,    0,  368,  354,
1798      343,    0,  257,    0,
1799       27,    0,    0,  313,
1800        0,    0,    0,    0,
1801        0,    0,   68,  190,
1802        0,    0,    0,   76,
1803        0,    0,    0,    0,
1804        0,  271,    0,    0,
1805        0,    0,    0,   40,
1806        0,    0,    0,   72,
1807        0,    0,    0,    0,
1808        0,    0,    0,  357,
1809        0,  307,    0,  252,
1810        0,    0,    0,    0,
1811        0,    0,    0,  246,
1812        4,    0,    0,  305,
1813        0,    0,   52,    0,
1814        0,    0,   19,    0,
1815        0,  202,    0,    0,
1816        0,    0,    0,    0,
1817        0,   13,    0,  345,
1818        0,  279,    0,    0,
1819      299,    0,   55,    0,
1820      353,  344,    0,  259,
1821        0,    0,    0,    0,
1822      314,    0,    0,    0,
1823        0,    0,   78,   69,
1824      189,  269,  331,    0,
1825       61,    0,    0,    0,
1826        0,    0,    0,    0,
1827        0,    0,    0,    0,
1828       34,    0,    0,    0,
1829      290,   18,    0,    0,
1830      295,    0,    0,    0,
1831      358,    0,  281,    0,
1832      253,    0,    0,  351,
1833        0,    0,    0,    0,
1834        0,    1,    0,    0,
1835      306,    0,    0,   51,
1836        0,    0,    0,    0,
1837        0,    0,  203,    0,
1838        0,    0,    0,    0,
1839      337,    0,   14,    0,
1840        7,  365,  323,    0,
1841       87,  301,    0,   56,
1842        0,    0,  310,    0,
1843      258,    0,    0,    0,
1844        0,  319,    0,    0,
1845        0,    0,    0,   22,
1846       48,   24,    0,  381,
1847        0,   62,    0,    0,
1848        0,    0,   63,    0,
1849        0,    0,    0,    0,
1850        0,   36,    0,    0,
1851        0,  339,    0,    0,
1852        0,    0,    0,    0,
1853        0,  272,    0,    0,
1854        0,  254,    0,    0,
1855      349,    0,    0,    0,
1856        0,    0,    9,    0,
1857        0,  251,    0,    0,
1858      374,    0,   57,    0,
1859        0,    0,    0,  204,
1860        0,    0,    0,    0,
1861        0,    0,    0,   10,
1862        0,    8,  194,  325,
1863        0,  341,  298,    0,
1864        0,    0,    0,  311,
1865        0,  260,    0,    0,
1866        0,    0,    0,    0,
1867        0,    0,    0,    0,
1868        0,  390,    0,  270,
1869      382,    0,   59,    0,
1870        0,    0,    0,   28,
1871        0,   53,    0,    0,
1872        0,    0,   37,    0,
1873        0,    0,    0,    0,
1874        0,    0,    0,    0,
1875        0,    0,  360,    0,
1876        0,    0,    0,    0,
1877      228,  350,    0,    0,
1878        0,    0,    0,   32,
1879        0,    0,    0,    0,
1880        0,  372,    0,    0,
1881        0,  186,    0,    0,
1882      205,    0,  229,    0,
1883       15,    0,   45,  221,
1884       11,    0,   16,  195,
1885      324,    0,  348,  378,
1886        0,    0,    0,    0,
1887        0,    0,  385,   90,
1888        0,    0,  322,    0,
1889        0,    0,    0,    0,
1890        0,    0,  391,    0,
1891        0,  383,    0,   60,
1892       66,    0,    0,    0,
1893       26,    0,  340,    0,
1894      387,  267,    0,   38,
1895        0,    0,    0,    0,
1896        0,    0,    0,    0,
1897        0,    0,    0,  361,
1898       88,    0,    0,    0,
1899        0,  227,    0,    0,
1900        0,    0,    0,    0,
1901        0,    0,    0,    0,
1902      236,    0,  292,    0,
1903       58,  274,  207,    0,
1904        0,  286,    0,  230,
1905        0,    0,    0,    0,
1906      373,    0,    0,    0,
1907        0,    0,    0,  288,
1908      380,    0,    0,    0,
1909        0,    0,    0,  261,
1910      243,    0,    0,    0,
1911        0,    0,   65,    0,
1912        0,    0,    0,  386,
1913        0,    0,  332,    0,
1914        0,   67,    0,    0,
1915        0,    0,    5,    0,
1916        0,   70,  268,    0,
1917       41,    0,    0,    0,
1918        0,    0,    0,    0,
1919       81,    0,    0,    0,
1920      362,   89,  239,    0,
1921      263,    0,  223,    0,
1922        0,   79,    0,    0,
1923        0,    0,  359,    0,
1924       47,  231,    0,  293,
1925        0,    0,  275,  220,
1926        0,    0,  287,    0,
1927 };
1928 
1929 static table_t table_API_OPENGLES32 = {
1930      211,    0,    0,  185,
1931        0,  210,    0,    0,
1932        0,    0,    0,    0,
1933      284,  376,  388,    0,
1934        0,    0,  317,    0,
1935      262,  241,    0,  366,
1936        0,    0,    0,    0,
1937        0,  283,    0,    0,
1938      392,    0,  191,  333,
1939        0,    0,    0,    0,
1940        0,    0,    0,    6,
1941        0,    0,    0,    0,
1942      320,    0,  395,  266,
1943        0,    0,    0,    0,
1944       64,    0,    0,    0,
1945        0,  237,  326,    0,
1946        0,    0,    0,  225,
1947        0,    0,    0,  289,
1948        0,    0,    0,   86,
1949        0,    0,  232,    0,
1950        0,    0,    0,  276,
1951        0,    0,    0,    0,
1952      249,  215,    0,    0,
1953        0,    0,    0,    0,
1954        0,  248,    0,    0,
1955        0,  285,  300,  393,
1956        0,    0,    0,  318,
1957      291,    0,  369,    0,
1958        0,    0,    0,    0,
1959        0,    0,    0,    0,
1960        0,    0,    0,  193,
1961      242,    0,    0,    0,
1962      277,   43,    0,    0,
1963      196,    0,    0,    0,
1964        0,    0,   73,    0,
1965        0,    0,    0,    0,
1966        0,    0,    0,    0,
1967        0,    0,  303,    0,
1968        0,    0,    0,    0,
1969      224,    0,    0,    0,
1970        0,    0,    0,    0,
1971       85,    0,    0,   80,
1972       20,    0,    0,  214,
1973        0,    0,    0,    0,
1974        0,    0,  216,    0,
1975        0,    0,    0,    0,
1976        0,    0,  264,    0,
1977        0,    0,    0,  302,
1978        0,    0,    0,    0,
1979      315,    0,    0,  370,
1980        0,    0,    0,    0,
1981        0,    0,    0,  282,
1982       42,    0,  244,    0,
1983      192,  336,    0,    0,
1984        0,    0,  219,    0,
1985        0,  198,    0,    0,
1986        0,    0,    0,   74,
1987        0,    0,    0,    0,
1988        0,    0,    0,    0,
1989      297,    0,  389,  309,
1990        0,  308,   82,  255,
1991        0,  226,    0,    0,
1992        0,    0,    0,    0,
1993        0,   83,    0,    0,
1994      234,   21,    0,    0,
1995      212,    0,    0,    0,
1996        0,    0,    0,  217,
1997        0,    0,  240,    0,
1998       39,    0,    0,  265,
1999        0,    0,    0,    0,
2000      296,  294,    0,    0,
2001      185,  316,    0,    0,
2002        0,    0,    0,    0,
2003        0,    0,    0,    0,
2004        0,    0,   23,  346,
2005        0,   44,  335,    0,
2006        0,    0,    0,    0,
2007        0,   54,  199,    0,
2008        0,    3,    0,    0,
2009        0,    0,    0,    0,
2010        0,    0,    0,  235,
2011        0,  377,    0,    0,
2012        0,    0,  327,   84,
2013      384,    0,    0,    0,
2014        0,    0,    0,    0,
2015        0,    0,  363,    0,
2016        0,    0,    0,  338,
2017        0,  213,    0,    0,
2018        0,    0,    0,    0,
2019        0,    0,    0,    0,
2020        0,   33,    0,    0,
2021      208,    0,    0,    0,
2022        0,  328,    0,    0,
2023        0,  356,  321,    0,
2024        0,  371,    0,    0,
2025        0,    0,    0,    0,
2026        0,  247,   29,    0,
2027      347,    0,    0,  197,
2028       50,    0,    0,    0,
2029      187,    0,    0,  200,
2030       30,    0,    2,    0,
2031      238,  334,    0,    0,
2032        0,    0,  218,  280,
2033        0,  330,  379,    0,
2034        0,  367,  352,  342,
2035        0,  256,    0,    0,
2036        0,    0,    0,    0,
2037        0,    0,    0,  364,
2038        0,  250,  188,  312,
2039        0,    0,   75,  273,
2040        0,    0,    0,    0,
2041        0,  206,    0,    0,
2042      233,   77,   35,    0,
2043        0,  209,   71,    0,
2044        0,    0,  329,  222,
2045        0,    0,  355,    0,
2046        0,    0,    0,    0,
2047        0,    0,    0,    0,
2048        0,    0,    0,   17,
2049        0,  245,  304,    0,
2050       46,   49,    0,    0,
2051        0,   25,    0,    0,
2052      201,   31,    0,    0,
2053        0,    0,    0,    0,
2054       12,    0,    0,    0,
2055      278,    0,    0,  375,
2056        0,    0,  368,  354,
2057      343,    0,  257,    0,
2058       27,    0,    0,  313,
2059        0,    0,    0,    0,
2060        0,    0,   68,  190,
2061        0,    0,    0,   76,
2062        0,    0,    0,    0,
2063        0,  271,    0,    0,
2064        0,    0,    0,   40,
2065        0,    0,    0,   72,
2066        0,    0,    0,    0,
2067        0,    0,    0,  357,
2068        0,  307,    0,  252,
2069        0,    0,    0,    0,
2070        0,    0,    0,  246,
2071        4,    0,    0,  305,
2072        0,    0,   52,    0,
2073        0,    0,   19,    0,
2074        0,  202,    0,    0,
2075        0,    0,    0,    0,
2076        0,   13,    0,  345,
2077        0,  279,    0,    0,
2078      299,    0,   55,    0,
2079      353,  344,    0,  259,
2080        0,    0,    0,    0,
2081      314,    0,    0,    0,
2082        0,    0,   78,   69,
2083      189,  269,  331,    0,
2084       61,    0,    0,    0,
2085        0,    0,    0,    0,
2086        0,    0,    0,    0,
2087       34,    0,    0,    0,
2088      290,   18,    0,    0,
2089      295,    0,    0,    0,
2090      358,    0,  281,    0,
2091      253,    0,    0,  351,
2092        0,    0,    0,    0,
2093        0,    1,    0,    0,
2094      306,    0,    0,   51,
2095        0,    0,    0,    0,
2096        0,    0,  203,    0,
2097        0,    0,    0,    0,
2098      337,    0,   14,    0,
2099        7,  365,  323,    0,
2100       87,  301,    0,   56,
2101        0,    0,  310,    0,
2102      258,    0,    0,    0,
2103        0,  319,    0,    0,
2104        0,    0,    0,   22,
2105       48,   24,    0,  381,
2106        0,   62,    0,    0,
2107        0,    0,   63,    0,
2108        0,    0,    0,    0,
2109        0,   36,    0,    0,
2110        0,  339,    0,    0,
2111        0,    0,    0,    0,
2112        0,  272,    0,    0,
2113        0,  254,    0,    0,
2114      349,    0,    0,    0,
2115        0,    0,    9,    0,
2116        0,  251,    0,    0,
2117      374,    0,   57,    0,
2118        0,    0,    0,  204,
2119        0,    0,    0,    0,
2120        0,    0,    0,   10,
2121        0,    8,  194,  325,
2122        0,  341,  298,    0,
2123        0,    0,    0,  311,
2124        0,  260,    0,    0,
2125        0,    0,    0,    0,
2126        0,    0,    0,    0,
2127        0,  390,    0,  270,
2128      382,    0,   59,    0,
2129        0,    0,    0,   28,
2130        0,   53,    0,    0,
2131        0,    0,   37,    0,
2132        0,    0,    0,    0,
2133        0,    0,    0,    0,
2134        0,    0,  360,    0,
2135        0,    0,    0,    0,
2136      228,  350,    0,    0,
2137        0,    0,    0,   32,
2138        0,    0,    0,    0,
2139        0,  372,    0,    0,
2140        0,  186,    0,    0,
2141      205,    0,  229,    0,
2142       15,    0,   45,  221,
2143       11,    0,   16,  195,
2144      324,    0,  348,  378,
2145        0,    0,    0,    0,
2146        0,    0,  385,   90,
2147        0,    0,  322,    0,
2148        0,    0,    0,    0,
2149        0,    0,  391,    0,
2150        0,  383,    0,   60,
2151       66,    0,    0,    0,
2152       26,    0,  340,    0,
2153      387,  267,    0,   38,
2154        0,    0,    0,    0,
2155        0,    0,    0,    0,
2156        0,    0,    0,  361,
2157       88,    0,    0,    0,
2158        0,  227,    0,    0,
2159        0,    0,    0,    0,
2160        0,    0,    0,    0,
2161      236,    0,  292,    0,
2162       58,  274,  207,    0,
2163        0,  286,    0,  230,
2164        0,    0,    0,    0,
2165      373,    0,    0,    0,
2166        0,    0,    0,  288,
2167      380,    0,    0,    0,
2168        0,  396,    0,  261,
2169      243,    0,    0,    0,
2170        0,    0,   65,    0,
2171        0,    0,    0,  386,
2172        0,    0,  332,    0,
2173        0,   67,    0,    0,
2174        0,    0,    5,    0,
2175        0,   70,  268,    0,
2176       41,  394,    0,    0,
2177        0,    0,    0,    0,
2178       81,    0,    0,    0,
2179      362,   89,  239,    0,
2180      263,    0,  223,    0,
2181        0,   79,    0,    0,
2182        0,    0,  359,    0,
2183       47,  231,    0,  293,
2184        0,    0,  275,  220,
2185        0,    0,  287,    0,
2186 };
2187 
2188 static table_t table_API_OPENGL_CORE = {
2189       92,  533,  471,    0,
2190      149,  210,    0,    0,
2191        0,  475,    0,  118,
2192      284,  376,  388,    0,
2193        0,    0,  317,  579,
2194      262,  241,    0,  366,
2195        0,    0,    0,  453,
2196        0,    0,    0,  476,
2197      392,    0,  191,  333,
2198        0,    0,  176,  161,
2199      508,  144,  150,    6,
2200        0,    0,  402,    0,
2201      320,    0,  395,  266,
2202      151,    0,  442,    0,
2203       64,  600,    0,    0,
2204        0,  237,  326,    0,
2205      576,    0,    0,  225,
2206        0,    0,  467,  289,
2207        0,  589,  399,   86,
2208      537,  500,  232,    0,
2209        0,  438,  350,  276,
2210      155,    0,  359,    0,
2211      249,   93,  534,    0,
2212        0,  154,    0,    0,
2213      120,  248,  444,    0,
2214      406,  285,  300,  393,
2215        0,    0,    0,  318,
2216      291,    0,  369,    0,
2217        0,    0,    0,    0,
2218      454,    0,    0,    0,
2219      134,    0,    0,  193,
2220      242,    0,    0,  177,
2221      277,   43,  128,    0,
2222      196,    0,    0,  423,
2223        0,  411,   73,    0,
2224        0,  412,    0,    0,
2225      143,  619,    0,    0,
2226      574,  407,  303,    0,
2227        0,  577,    0,    0,
2228      224,  556,    0,  468,
2229        0,    0,  590,  400,
2230       85,  538,  516,   80,
2231       20,    0,    0,  214,
2232      527,  159,  545,  580,
2233      434,  565,   94,    0,
2234      435,    0,  136,    0,
2235      578,  429,  264,  445,
2236        0,  417,    0,  302,
2237        0,    0,  561,    0,
2238      315,    0,    0,  370,
2239        0,  427,    0,    0,
2240        0,  455,    0,    0,
2241       42,  135,  244,    0,
2242      192,  336,    0,    0,
2243      178,  163,  219,  452,
2244      581,  198,    0,    0,
2245      106,    0,    0,   74,
2246        0,    0,  413,    0,
2247        0,  141,  620,    0,
2248      297,    0,  389,  309,
2249      598,  308,   82,  255,
2250        0,  226,    0,    0,
2251      469,    0,    0,  593,
2252        0,   83,  539,  517,
2253      234,   21,    0,    0,
2254      212,  528,  162,  419,
2255      615,  503,  566,   95,
2256        0,  501,  240,  148,
2257       39,    0,  122,  265,
2258        0,    0,  420,    0,
2259      296,  107,    0,  562,
2260        0,  316,    0,    0,
2261      571,    0,  428,    0,
2262        0,    0,  456,    0,
2263        0,  432,   23,  346,
2264        0,   44,  335,    0,
2265      488,  567,  164,  139,
2266      124,   54,  199,    0,
2267        0,    3,    0,    0,
2268        0,    0,    0,  115,
2269      493,    0,  142,  235,
2270        0,  377,    0,  610,
2271        0,  404,  327,   84,
2272      384,    0,    0,  623,
2273      449,  601,    0,    0,
2274      592,    0,  363,    0,
2275      431,  479,    0,  338,
2276      607,  213,    0,  521,
2277      510,  616,  424,  554,
2278       96,    0,    0,    0,
2279      153,   33,  466,  126,
2280      208,    0,    0,  418,
2281        0,  328,  108,    0,
2282        0,  356,  321,  584,
2283        0,  371,    0,    0,
2284        0,  415,    0,  457,
2285      405,  247,   29,  473,
2286      347,  595,  559,  197,
2287       50,  491,  179,  165,
2288      187,  552,    0,  200,
2289       30,    0,    2,    0,
2290      238,  334,    0,    0,
2291      481,  497,  218,  280,
2292        0,  330,  379,    0,
2293        0,  367,  352,  342,
2294        0,  256,    0,    0,
2295      624,  450,  602,    0,
2296        0,  591,    0,  364,
2297      474,  250,  188,  312,
2298        0,    0,   75,  273,
2299      166,  180,  617,  505,
2300      509,   97,    0,    0,
2301      103,   77,   35,    0,
2302      123,  209,   71,    0,
2303      421,    0,  329,  109,
2304        0,    0,  355,    0,
2305        0,    0,  557,  274,
2306      504,    0,    0,    0,
2307      458,    0,    0,   17,
2308        0,  245,  304,    0,
2309       46,   49,  489,  568,
2310      520,   25,    0,    0,
2311      201,   31,    0,  396,
2312        0,    0,  604,    0,
2313       12,    0,  499,    0,
2314      278,    0,    0,  375,
2315        0,  422,  368,  354,
2316      343,    0,  257,    0,
2317       27,    0,  460,  313,
2318        0,    0,    0,  403,
2319      564,   91,   68,  190,
2320        0,    0,    0,   76,
2321      582,  526,  512,  618,
2322        0,  271,   98,    0,
2323        0,  104,  606,   40,
2324        0,  125,    0,   72,
2325      127,  416,  588,    0,
2326      110,    0,    0,  357,
2327        0,  307,    0,  252,
2328      275,    0,    0,    0,
2329      459,    0,  211,  246,
2330        4,    0,  145,  305,
2331      560,  171,   52,  487,
2332      569,  522,   19,  550,
2333      502,  202,    0,  611,
2334      555,    0,  558,  608,
2335        0,   13,    0,  345,
2336        0,  279,    0,    0,
2337      299,    0,   55,    0,
2338      353,  344,    0,  259,
2339      549,  495,    0,  461,
2340      314,    0,    0,    0,
2341      173,    0,   78,   69,
2342      189,  269,  331,    0,
2343       61,  583,  156,  513,
2344        0,    0,    0,   99,
2345      131,    0,  105,    0,
2346       34,    0,  121,    0,
2347      290,   18,    0,    0,
2348      295,  111,    0,    0,
2349      358,    0,    0,  482,
2350      253,  525,    0,  351,
2351        0,  462,    0,  215,
2352        0,    1,    0,  146,
2353      306,    0,  170,   51,
2354      486,  174,  523,  507,
2355      543,    0,  203,    0,
2356      612,    0,    0,    0,
2357      132,    0,   14,    0,
2358        7,  365,  323,    0,
2359       87,  301,    0,   56,
2360        0,  609,  310,    0,
2361      258,  551,  496,    0,
2362      492,  319,    0,    0,
2363        0,    0,    0,   22,
2364       48,   24,    0,  381,
2365        0,   62,    0,  157,
2366        0,    0,   63,    0,
2367      563,  447,  430,    0,
2368        0,   36,    0,    0,
2369      100,  339,  129,    0,
2370        0,    0,  112,    0,
2371        0,  233,    0,    0,
2372        0,  254,    0,    0,
2373      349,  614,  463,    0,
2374      216,    0,    9,    0,
2375      147,  251,    0,  540,
2376      374,  485,   57,  524,
2377        0,  544,    0,  204,
2378      594,  613,    0,    0,
2379        0,  138,    0,   10,
2380      410,    8,  194,  325,
2381      116,  341,  298,    0,
2382        0,    0,    0,  311,
2383        0,  260,    0,    0,
2384        0,  498,    0,    0,
2385      448,    0,  603,    0,
2386      477,  390,    0,  270,
2387      382,    0,   59,  553,
2388      158,    0,    0,   28,
2389      433,   53,  130,  408,
2390      572,    0,   37,    0,
2391        0,  439,  625,  443,
2392        0,    0,    0,  113,
2393        0,    0,  360,    0,
2394        0,    0,    0,    0,
2395      228,  152,    0,  464,
2396        0,  217,  586,   32,
2397        0,  119,  436,    0,
2398      541,  372,  490,  175,
2399      167,  186,  548,  294,
2400      205,    0,  229,  605,
2401       15,    0,   45,  221,
2402       11,  409,   16,  195,
2403      324,  414,  348,  378,
2404        0,    0,    0,    0,
2405        0,    0,  385,   90,
2406      426,    0,  322,    0,
2407      530,  451,    0,  585,
2408        0,  472,  391,    0,
2409      515,  383,    0,   60,
2410       66,  518,    0,  596,
2411       26,  437,  340,  529,
2412      387,  267,    0,   38,
2413      401,    0,  102,  622,
2414      440,    0,    0,    0,
2415      114,    0,    0,  361,
2416       88,    0,    0,    0,
2417        0,  227,    0,    0,
2418      465,    0,  480,  587,
2419      397,    0,  535,  172,
2420      236,  542,  292,  484,
2421       58,  168,  207,  546,
2422      425,  286,    0,  230,
2423      532,  470,    0,  137,
2424      373,    0,  570,    0,
2425      446,    0,  117,  288,
2426      380,    0,    0,    0,
2427        0,  337,    0,  261,
2428      243,  621,    0,    0,
2429        0,  531,   65,    0,
2430        0,    0,  133,  386,
2431        0,  514,  332,  519,
2432        0,   67,  160,    0,
2433      140,  494,    5,    0,
2434      575,   70,  268,    0,
2435       41,  394,    0,  101,
2436        0,  441,    0,  599,
2437       81,  573,    0,    0,
2438      362,   89,  239,    0,
2439      263,    0,  223,  511,
2440        0,   79,  597,  206,
2441      478,  398,  272,  536,
2442       47,  231,    0,  293,
2443      483,  506,  169,  220,
2444      547,  222,  287,    0,
2445 };
2446 
2447 static table_t *table_set[] = {
2448    &table_API_OPENGL,
2449    &table_API_OPENGLES,
2450    &table_API_OPENGLES2,
2451    &table_API_OPENGL_CORE,
2452    &table_API_OPENGLES3,
2453    &table_API_OPENGLES31,
2454    &table_API_OPENGLES32,
2455 };
2456 
2457 #define table(api) (*table_set[api])
2458