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