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