• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright © 2012 Intel Corporation
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice (including the next
12  * paragraph) shall be included in all copies or substantial portions of the
13  * Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21  * DEALINGS IN THE SOFTWARE.
22  */
23 
24 /**
25  * \name dispatch_sanity.cpp
26  *
27  * Verify that only set of functions that should be available in a particular
28  * API are available in that API.
29  *
30  * The list of expected functions originally came from the functions set by
31  * api_exec_es2.c.  This file no longer exists in Mesa (but api_exec_es1.c was
32  * still generated at the time this test was written).  It was the generated
33  * file that configured the dispatch table for ES2 contexts.  This test
34  * verifies that all of the functions set by the old api_exec_es2.c (with the
35  * recent addition of VAO functions) are set in the dispatch table and
36  * everything else is a NOP.
37  *
38  * When adding extensions that add new functions, this test will need to be
39  * modified to expect dispatch functions for the new extension functions.
40  */
41 
42 #include <gtest/gtest.h>
43 
44 #include "GL/gl.h"
45 #include "GL/glext.h"
46 #include "main/compiler.h"
47 #include "main/api_exec.h"
48 #include "main/context.h"
49 #include "main/remap.h"
50 #include "main/vtxfmt.h"
51 #include "glapi/glapi.h"
52 #include "drivers/common/driverfuncs.h"
53 
54 #include "swrast/swrast.h"
55 #include "vbo/vbo.h"
56 #include "tnl/tnl.h"
57 #include "swrast_setup/swrast_setup.h"
58 
59 #ifndef GLAPIENTRYP
60 #define GLAPIENTRYP GL_APIENTRYP
61 #endif
62 
63 #include "main/dispatch.h"
64 
65 struct function {
66    const char *name;
67    unsigned int Version;
68    int offset;
69 };
70 
71 extern const struct function common_desktop_functions_possible[];
72 extern const struct function gl_compatibility_functions_possible[];
73 extern const struct function gl_core_functions_possible[];
74 extern const struct function gles11_functions_possible[];
75 extern const struct function gles2_functions_possible[];
76 extern const struct function gles3_functions_possible[];
77 extern const struct function gles31_functions_possible[];
78 
79 class DispatchSanity_test : public ::testing::Test {
80 public:
81    virtual void SetUp();
82    void SetUpCtx(gl_api api, unsigned int version);
83 
84    struct gl_config visual;
85    struct dd_function_table driver_functions;
86    struct gl_context share_list;
87    struct gl_context ctx;
88    _glapi_proc *nop_table;
89 };
90 
91 void
SetUp()92 DispatchSanity_test::SetUp()
93 {
94    memset(&visual, 0, sizeof(visual));
95    memset(&driver_functions, 0, sizeof(driver_functions));
96    memset(&share_list, 0, sizeof(share_list));
97    memset(&ctx, 0, sizeof(ctx));
98 
99    _mesa_init_driver_functions(&driver_functions);
100 
101    const unsigned size = _glapi_get_dispatch_table_size();
102    nop_table = (_glapi_proc *) _mesa_new_nop_table(size);
103 }
104 
105 void
SetUpCtx(gl_api api,unsigned int version)106 DispatchSanity_test::SetUpCtx(gl_api api, unsigned int version)
107 {
108    _mesa_initialize_context(&ctx,
109                             api,
110                             &visual,
111                             NULL, // share_list
112                             &driver_functions);
113    _vbo_CreateContext(&ctx);
114 
115    ctx.Version = version;
116 
117    _mesa_initialize_dispatch_tables(&ctx);
118    _mesa_initialize_vbo_vtxfmt(&ctx);
119 }
120 
121 static const char *
offset_to_proc_name_safe(unsigned offset)122 offset_to_proc_name_safe(unsigned offset)
123 {
124    const char *name = _glapi_get_proc_name(offset);
125    return name ? name : "???";
126 }
127 
128 /* Scan through the dispatch table and check that all the functions in
129  * _glapi_proc *table exist.
130  */
131 static void
validate_functions(struct gl_context * ctx,const struct function * function_table,const _glapi_proc * nop_table)132 validate_functions(struct gl_context *ctx, const struct function *function_table,
133                    const _glapi_proc *nop_table)
134 {
135    _glapi_proc *table = (_glapi_proc *) ctx->Exec;
136 
137    for (unsigned i = 0; function_table[i].name != NULL; i++) {
138       /* The context version is >= the GL version where the function was
139        * introduced. Therefore, the function cannot be set to the nop
140        * function.
141        */
142       const bool cant_be_nop = ctx->Version >= function_table[i].Version;
143 
144       const int offset = (function_table[i].offset != -1)
145          ? function_table[i].offset
146          : _glapi_get_proc_offset(function_table[i].name);
147 
148       ASSERT_NE(-1, offset)
149          << "Function: " << function_table[i].name;
150       ASSERT_EQ(offset,
151                 _glapi_get_proc_offset(function_table[i].name))
152          << "Function: " << function_table[i].name;
153       if (cant_be_nop) {
154          EXPECT_NE(nop_table[offset], table[offset])
155             << "Function: " << function_table[i].name
156             << " at offset " << offset;
157       }
158 
159       table[offset] = nop_table[offset];
160    }
161 }
162 
163 /* Scan through the table and ensure that there is nothing except
164  * nop functions (as set by validate_functions().
165  */
166 static void
validate_nops(struct gl_context * ctx,const _glapi_proc * nop_table)167 validate_nops(struct gl_context *ctx, const _glapi_proc *nop_table)
168 {
169    _glapi_proc *table = (_glapi_proc *) ctx->Exec;
170 
171    const unsigned size = _glapi_get_dispatch_table_size();
172    for (unsigned i = 0; i < size; i++) {
173       EXPECT_EQ(nop_table[i], table[i])
174          << "i = " << i << " (" << offset_to_proc_name_safe(i) << ")";
175    }
176 }
177 
TEST_F(DispatchSanity_test,GL31_CORE)178 TEST_F(DispatchSanity_test, GL31_CORE)
179 {
180    SetUpCtx(API_OPENGL_CORE, 31);
181    validate_functions(&ctx, common_desktop_functions_possible, nop_table);
182    validate_functions(&ctx, gl_core_functions_possible, nop_table);
183    validate_nops(&ctx, nop_table);
184 }
185 
TEST_F(DispatchSanity_test,GL30)186 TEST_F(DispatchSanity_test, GL30)
187 {
188    SetUpCtx(API_OPENGL_COMPAT, 30);
189    validate_functions(&ctx, common_desktop_functions_possible, nop_table);
190    validate_functions(&ctx, gl_compatibility_functions_possible, nop_table);
191    validate_nops(&ctx, nop_table);
192 }
193 
TEST_F(DispatchSanity_test,GLES11)194 TEST_F(DispatchSanity_test, GLES11)
195 {
196    SetUpCtx(API_OPENGLES, 11);
197    validate_functions(&ctx, gles11_functions_possible, nop_table);
198    validate_nops(&ctx, nop_table);
199 }
200 
TEST_F(DispatchSanity_test,GLES2)201 TEST_F(DispatchSanity_test, GLES2)
202 {
203    SetUpCtx(API_OPENGLES2, 20);
204    validate_functions(&ctx, gles2_functions_possible, nop_table);
205    validate_nops(&ctx, nop_table);
206 }
207 
TEST_F(DispatchSanity_test,GLES3)208 TEST_F(DispatchSanity_test, GLES3)
209 {
210    SetUpCtx(API_OPENGLES2, 30);
211    validate_functions(&ctx, gles2_functions_possible, nop_table);
212    validate_functions(&ctx, gles3_functions_possible, nop_table);
213    validate_nops(&ctx, nop_table);
214 }
215 
TEST_F(DispatchSanity_test,GLES31)216 TEST_F(DispatchSanity_test, GLES31)
217 {
218    SetUpCtx(API_OPENGLES2, 31);
219    validate_functions(&ctx, gles2_functions_possible, nop_table);
220    validate_functions(&ctx, gles3_functions_possible, nop_table);
221    validate_functions(&ctx, gles31_functions_possible, nop_table);
222    validate_nops(&ctx, nop_table);
223 }
224 
225 const struct function common_desktop_functions_possible[] = {
226    { "glCullFace", 10, -1 },
227    { "glFrontFace", 10, -1 },
228    { "glHint", 10, -1 },
229    { "glLineWidth", 10, -1 },
230    { "glPointSize", 10, -1 },
231    { "glPolygonMode", 10, -1 },
232    { "glScissor", 10, -1 },
233    { "glTexParameterf", 10, -1 },
234    { "glTexParameterfv", 10, -1 },
235    { "glTexParameteri", 10, -1 },
236    { "glTexParameteriv", 10, -1 },
237    { "glTexImage1D", 10, _gloffset_TexImage1D },
238    { "glTexImage2D", 10, _gloffset_TexImage2D },
239    { "glDrawBuffer", 10, -1 },
240    { "glClear", 10, -1 },
241    { "glClearColor", 10, -1 },
242    { "glClearStencil", 10, -1 },
243    { "glClearDepth", 10, -1 },
244    { "glStencilMask", 10, -1 },
245    { "glColorMask", 10, -1 },
246    { "glDepthMask", 10, -1 },
247    { "glDisable", 10, -1 },
248    { "glEnable", 10, -1 },
249    { "glFinish", 10, -1 },
250    { "glFlush", 10, -1 },
251    { "glBlendFunc", 10, -1 },
252    { "glLogicOp", 10, -1 },
253    { "glStencilFunc", 10, -1 },
254    { "glStencilOp", 10, -1 },
255    { "glDepthFunc", 10, -1 },
256    { "glPixelStoref", 10, -1 },
257    { "glPixelStorei", 10, -1 },
258    { "glReadBuffer", 10, -1 },
259    { "glReadPixels", 10, -1 },
260    { "glGetBooleanv", 10, -1 },
261    { "glGetDoublev", 10, -1 },
262    { "glGetError", 10, -1 },
263    { "glGetFloatv", 10, -1 },
264    { "glGetIntegerv", 10, -1 },
265    { "glGetString", 10, -1 },
266    { "glGetTexImage", 10, -1 },
267    { "glGetTexParameterfv", 10, -1 },
268    { "glGetTexParameteriv", 10, -1 },
269    { "glGetTexLevelParameterfv", 10, -1 },
270    { "glGetTexLevelParameteriv", 10, -1 },
271    { "glIsEnabled", 10, -1 },
272    { "glDepthRange", 10, -1 },
273    { "glViewport", 10, -1 },
274 
275    /* GL 1.1 */
276    { "glDrawArrays", 11, -1 },
277    { "glDrawElements", 11, -1 },
278    { "glGetPointerv", 11, -1 },
279    { "glPolygonOffset", 11, -1 },
280    { "glCopyTexImage1D", 11, -1 },
281    { "glCopyTexImage2D", 11, -1 },
282    { "glCopyTexSubImage1D", 11, -1 },
283    { "glCopyTexSubImage2D", 11, -1 },
284    { "glTexSubImage1D", 11, -1 },
285    { "glTexSubImage2D", 11, -1 },
286    { "glBindTexture", 11, -1 },
287    { "glDeleteTextures", 11, -1 },
288    { "glGenTextures", 11, -1 },
289    { "glIsTexture", 11, -1 },
290 
291    /* GL 1.2 */
292    { "glBlendColor", 12, -1 },
293    { "glBlendEquation", 12, -1 },
294    { "glDrawRangeElements", 12, -1 },
295    { "glTexImage3D", 12, -1 },
296    { "glTexSubImage3D", 12, -1 },
297    { "glCopyTexSubImage3D", 12, -1 },
298 
299    /* GL 1.3 */
300    { "glActiveTexture", 13, -1 },
301    { "glSampleCoverage", 13, -1 },
302    { "glCompressedTexImage3D", 13, -1 },
303    { "glCompressedTexImage2D", 13, -1 },
304    { "glCompressedTexImage1D", 13, -1 },
305    { "glCompressedTexSubImage3D", 13, -1 },
306    { "glCompressedTexSubImage2D", 13, -1 },
307    { "glCompressedTexSubImage1D", 13, -1 },
308    { "glGetCompressedTexImage", 13, -1 },
309 
310    /* GL 1.4 */
311    { "glBlendFuncSeparate", 14, -1 },
312    { "glMultiDrawArrays", 14, -1 },
313    { "glMultiDrawElements", 14, -1 },
314    { "glPointParameterf", 14, -1 },
315    { "glPointParameterfv", 14, -1 },
316    { "glPointParameteri", 14, -1 },
317    { "glPointParameteriv", 14, -1 },
318 
319    /* GL 1.5 */
320    { "glGenQueries", 15, -1 },
321    { "glDeleteQueries", 15, -1 },
322    { "glIsQuery", 15, -1 },
323    { "glBeginQuery", 15, -1 },
324    { "glEndQuery", 15, -1 },
325    { "glGetQueryiv", 15, -1 },
326    { "glGetQueryObjectiv", 15, -1 },
327    { "glGetQueryObjectuiv", 15, -1 },
328    { "glBindBuffer", 15, -1 },
329    { "glDeleteBuffers", 15, -1 },
330    { "glGenBuffers", 15, -1 },
331    { "glIsBuffer", 15, -1 },
332    { "glBufferData", 15, -1 },
333    { "glBufferSubData", 15, -1 },
334    { "glGetBufferSubData", 15, -1 },
335    { "glMapBuffer", 15, -1 },
336    { "glUnmapBuffer", 15, -1 },
337    { "glGetBufferParameteriv", 15, -1 },
338    { "glGetBufferPointerv", 15, -1 },
339 
340    /* GL 2.0 */
341    { "glBlendEquationSeparate", 20, -1 },
342    { "glDrawBuffers", 20, -1 },
343    { "glStencilOpSeparate", 20, -1 },
344    { "glStencilFuncSeparate", 20, -1 },
345    { "glStencilMaskSeparate", 20, -1 },
346    { "glAttachShader", 20, -1 },
347    { "glBindAttribLocation", 20, -1 },
348    { "glCompileShader", 20, -1 },
349    { "glCreateProgram", 20, -1 },
350    { "glCreateShader", 20, -1 },
351    { "glDeleteProgram", 20, -1 },
352    { "glDeleteShader", 20, -1 },
353    { "glDetachShader", 20, -1 },
354    { "glDisableVertexAttribArray", 20, -1 },
355    { "glEnableVertexAttribArray", 20, -1 },
356    { "glGetActiveAttrib", 20, -1 },
357    { "glGetActiveUniform", 20, -1 },
358    { "glGetAttachedShaders", 20, -1 },
359    { "glGetAttribLocation", 20, -1 },
360    { "glGetProgramiv", 20, -1 },
361    { "glGetProgramInfoLog", 20, -1 },
362    { "glGetShaderiv", 20, -1 },
363    { "glGetShaderInfoLog", 20, -1 },
364    { "glGetShaderSource", 20, -1 },
365    { "glGetUniformLocation", 20, -1 },
366    { "glGetUniformfv", 20, -1 },
367    { "glGetUniformiv", 20, -1 },
368    { "glGetVertexAttribdv", 20, -1 },
369    { "glGetVertexAttribfv", 20, -1 },
370    { "glGetVertexAttribiv", 20, -1 },
371    { "glGetVertexAttribPointerv", 20, -1 },
372    { "glIsProgram", 20, -1 },
373    { "glIsShader", 20, -1 },
374    { "glLinkProgram", 20, -1 },
375    { "glShaderSource", 20, -1 },
376    { "glUseProgram", 20, -1 },
377    { "glUniform1f", 20, -1 },
378    { "glUniform2f", 20, -1 },
379    { "glUniform3f", 20, -1 },
380    { "glUniform4f", 20, -1 },
381    { "glUniform1i", 20, -1 },
382    { "glUniform2i", 20, -1 },
383    { "glUniform3i", 20, -1 },
384    { "glUniform4i", 20, -1 },
385    { "glUniform1fv", 20, -1 },
386    { "glUniform2fv", 20, -1 },
387    { "glUniform3fv", 20, -1 },
388    { "glUniform4fv", 20, -1 },
389    { "glUniform1iv", 20, -1 },
390    { "glUniform2iv", 20, -1 },
391    { "glUniform3iv", 20, -1 },
392    { "glUniform4iv", 20, -1 },
393    { "glUniformMatrix2fv", 20, -1 },
394    { "glUniformMatrix3fv", 20, -1 },
395    { "glUniformMatrix4fv", 20, -1 },
396    { "glValidateProgram", 20, -1 },
397    { "glVertexAttrib1d", 20, -1 },
398    { "glVertexAttrib1dv", 20, -1 },
399    { "glVertexAttrib1f", 20, -1 },
400    { "glVertexAttrib1fv", 20, -1 },
401    { "glVertexAttrib1s", 20, -1 },
402    { "glVertexAttrib1sv", 20, -1 },
403    { "glVertexAttrib2d", 20, -1 },
404    { "glVertexAttrib2dv", 20, -1 },
405    { "glVertexAttrib2f", 20, -1 },
406    { "glVertexAttrib2fv", 20, -1 },
407    { "glVertexAttrib2s", 20, -1 },
408    { "glVertexAttrib2sv", 20, -1 },
409    { "glVertexAttrib3d", 20, -1 },
410    { "glVertexAttrib3dv", 20, -1 },
411    { "glVertexAttrib3f", 20, -1 },
412    { "glVertexAttrib3fv", 20, -1 },
413    { "glVertexAttrib3s", 20, -1 },
414    { "glVertexAttrib3sv", 20, -1 },
415    { "glVertexAttrib4Nbv", 20, -1 },
416    { "glVertexAttrib4Niv", 20, -1 },
417    { "glVertexAttrib4Nsv", 20, -1 },
418    { "glVertexAttrib4Nub", 20, -1 },
419    { "glVertexAttrib4Nubv", 20, -1 },
420    { "glVertexAttrib4Nuiv", 20, -1 },
421    { "glVertexAttrib4Nusv", 20, -1 },
422    { "glVertexAttrib4bv", 20, -1 },
423    { "glVertexAttrib4d", 20, -1 },
424    { "glVertexAttrib4dv", 20, -1 },
425    { "glVertexAttrib4f", 20, -1 },
426    { "glVertexAttrib4fv", 20, -1 },
427    { "glVertexAttrib4iv", 20, -1 },
428    { "glVertexAttrib4s", 20, -1 },
429    { "glVertexAttrib4sv", 20, -1 },
430    { "glVertexAttrib4ubv", 20, -1 },
431    { "glVertexAttrib4uiv", 20, -1 },
432    { "glVertexAttrib4usv", 20, -1 },
433    { "glVertexAttribPointer", 20, -1 },
434 
435    /* GL 2.1 */
436    { "glUniformMatrix2x3fv", 21, -1 },
437    { "glUniformMatrix3x2fv", 21, -1 },
438    { "glUniformMatrix2x4fv", 21, -1 },
439    { "glUniformMatrix4x2fv", 21, -1 },
440    { "glUniformMatrix3x4fv", 21, -1 },
441    { "glUniformMatrix4x3fv", 21, -1 },
442 
443    /* GL 3.0 */
444    { "glColorMaski", 30, -1 },
445    { "glGetBooleani_v", 30, -1 },
446    { "glGetIntegeri_v", 30, -1 },
447    { "glEnablei", 30, -1 },
448    { "glDisablei", 30, -1 },
449    { "glIsEnabledi", 30, -1 },
450    { "glBeginTransformFeedback", 30, -1 },
451    { "glEndTransformFeedback", 30, -1 },
452    { "glBindBufferRange", 30, -1 },
453    { "glBindBufferBase", 30, -1 },
454    { "glTransformFeedbackVaryings", 30, -1 },
455    { "glGetTransformFeedbackVarying", 30, -1 },
456    { "glClampColor", 30, -1 },
457    { "glBeginConditionalRender", 30, -1 },
458    { "glEndConditionalRender", 30, -1 },
459    { "glVertexAttribIPointer", 30, -1 },
460    { "glGetVertexAttribIiv", 30, -1 },
461    { "glGetVertexAttribIuiv", 30, -1 },
462    { "glVertexAttribI1i", 30, -1 },
463    { "glVertexAttribI2i", 30, -1 },
464    { "glVertexAttribI3i", 30, -1 },
465    { "glVertexAttribI4i", 30, -1 },
466    { "glVertexAttribI1ui", 30, -1 },
467    { "glVertexAttribI2ui", 30, -1 },
468    { "glVertexAttribI3ui", 30, -1 },
469    { "glVertexAttribI4ui", 30, -1 },
470    { "glVertexAttribI1iv", 30, -1 },
471    { "glVertexAttribI2iv", 30, -1 },
472    { "glVertexAttribI3iv", 30, -1 },
473    { "glVertexAttribI4iv", 30, -1 },
474    { "glVertexAttribI1uiv", 30, -1 },
475    { "glVertexAttribI2uiv", 30, -1 },
476    { "glVertexAttribI3uiv", 30, -1 },
477    { "glVertexAttribI4uiv", 30, -1 },
478    { "glVertexAttribI4bv", 30, -1 },
479    { "glVertexAttribI4sv", 30, -1 },
480    { "glVertexAttribI4ubv", 30, -1 },
481    { "glVertexAttribI4usv", 30, -1 },
482    { "glGetUniformuiv", 30, -1 },
483    { "glBindFragDataLocation", 30, -1 },
484    { "glGetFragDataLocation", 30, -1 },
485    { "glUniform1ui", 30, -1 },
486    { "glUniform2ui", 30, -1 },
487    { "glUniform3ui", 30, -1 },
488    { "glUniform4ui", 30, -1 },
489    { "glUniform1uiv", 30, -1 },
490    { "glUniform2uiv", 30, -1 },
491    { "glUniform3uiv", 30, -1 },
492    { "glUniform4uiv", 30, -1 },
493    { "glTexParameterIiv", 30, -1 },
494    { "glTexParameterIuiv", 30, -1 },
495    { "glGetTexParameterIiv", 30, -1 },
496    { "glGetTexParameterIuiv", 30, -1 },
497    { "glClearBufferiv", 30, -1 },
498    { "glClearBufferuiv", 30, -1 },
499    { "glClearBufferfv", 30, -1 },
500    { "glClearBufferfi", 30, -1 },
501    { "glGetStringi", 30, -1 },
502 
503    /* GL 3.1 */
504    { "glDrawArraysInstanced", 31, -1 },
505    { "glDrawElementsInstanced", 31, -1 },
506    { "glPrimitiveRestartIndex", 31, -1 },
507 
508    /* GL_ARB_shader_objects */
509    { "glDeleteObjectARB", 31, -1 },
510    { "glGetHandleARB", 31, -1 },
511    { "glDetachObjectARB", 31, -1 },
512    { "glCreateShaderObjectARB", 31, -1 },
513    { "glCreateProgramObjectARB", 31, -1 },
514    { "glAttachObjectARB", 31, -1 },
515    { "glGetObjectParameterfvARB", 31, -1 },
516    { "glGetObjectParameterivARB", 31, -1 },
517    { "glGetInfoLogARB", 31, -1 },
518    { "glGetAttachedObjectsARB", 31, -1 },
519 
520    /* GL_ARB_get_program_binary */
521    { "glGetProgramBinary", 30, -1 },
522    { "glProgramBinary", 30, -1 },
523    { "glProgramParameteri", 30, -1 },
524 
525    /* GL_EXT_transform_feedback */
526    { "glBindBufferOffsetEXT", 31, -1 },
527 
528    /* GL_IBM_multimode_draw_arrays */
529    { "glMultiModeDrawArraysIBM", 31, -1 },
530    { "glMultiModeDrawElementsIBM", 31, -1 },
531 
532    /* GL_EXT_depth_bounds_test */
533    { "glDepthBoundsEXT", 31, -1 },
534 
535    /* GL_apple_object_purgeable */
536    { "glObjectPurgeableAPPLE", 31, -1 },
537    { "glObjectUnpurgeableAPPLE", 31, -1 },
538    { "glGetObjectParameterivAPPLE", 31, -1 },
539 
540    /* GL_ARB_instanced_arrays */
541    { "glVertexAttribDivisorARB", 31, -1 },
542 
543    /* GL_NV_texture_barrier */
544    { "glTextureBarrierNV", 31, -1 },
545 
546    /* GL_EXT_texture_integer */
547    { "glClearColorIiEXT", 31, -1 },
548    { "glClearColorIuiEXT", 31, -1 },
549 
550    /* GL_OES_EGL_image */
551    { "glEGLImageTargetRenderbufferStorageOES", 31, -1 },
552    { "glEGLImageTargetTexture2DOES", 31, -1 },
553 
554    /* GL 3.2 */
555    { "glGetInteger64i_v", 32, -1 },
556    { "glGetBufferParameteri64v", 32, -1 },
557    { "glFramebufferTexture", 32, -1 },
558    { "glProgramParameteri", 32, -1 },
559    { "glFramebufferTextureLayer", 32, -1 },
560 
561    /* GL 3.3 */
562    { "glVertexAttribDivisor", 33, -1 },
563 
564    /* GL 4.0 */
565    { "glMinSampleShading", 40, -1 },
566    { "glPatchParameteri", 40, -1 },
567    { "glPatchParameterfv", 40, -1 },
568    { "glBlendEquationi", 40, -1 },
569    { "glBlendEquationSeparatei", 40, -1 },
570    { "glBlendFunci", 40, -1 },
571    { "glBlendFuncSeparatei", 40, -1 },
572 
573    /* GL 4.3 */
574    { "glIsRenderbuffer", 43, -1 },
575    { "glBindRenderbuffer", 43, -1 },
576    { "glDeleteRenderbuffers", 43, -1 },
577    { "glGenRenderbuffers", 43, -1 },
578    { "glRenderbufferStorage", 43, -1 },
579    { "glGetRenderbufferParameteriv", 43, -1 },
580    { "glIsFramebuffer", 43, -1 },
581    { "glBindFramebuffer", 43, -1 },
582    { "glDeleteFramebuffers", 43, -1 },
583    { "glGenFramebuffers", 43, -1 },
584    { "glCheckFramebufferStatus", 43, -1 },
585    { "glFramebufferTexture1D", 43, -1 },
586    { "glFramebufferTexture2D", 43, -1 },
587    { "glFramebufferTexture3D", 43, -1 },
588    { "glFramebufferRenderbuffer", 43, -1 },
589    { "glGetFramebufferAttachmentParameteriv", 43, -1 },
590    { "glGenerateMipmap", 43, -1 },
591    { "glBlitFramebuffer", 43, -1 },
592    { "glRenderbufferStorageMultisample", 43, -1 },
593    { "glFramebufferTextureLayer", 43, -1 },
594    { "glMapBufferRange", 43, -1 },
595    { "glFlushMappedBufferRange", 43, -1 },
596    { "glBindVertexArray", 43, -1 },
597    { "glDeleteVertexArrays", 43, -1 },
598    { "glGenVertexArrays", 43, -1 },
599    { "glIsVertexArray", 43, -1 },
600    { "glGetUniformIndices", 43, -1 },
601    { "glGetActiveUniformsiv", 43, -1 },
602    { "glGetActiveUniformName", 43, -1 },
603    { "glGetUniformBlockIndex", 43, -1 },
604    { "glGetActiveUniformBlockiv", 43, -1 },
605    { "glGetActiveUniformBlockName", 43, -1 },
606    { "glUniformBlockBinding", 43, -1 },
607    { "glCopyBufferSubData", 43, -1 },
608    { "glDrawElementsBaseVertex", 43, -1 },
609    { "glDrawRangeElementsBaseVertex", 43, -1 },
610    { "glDrawElementsInstancedBaseVertex", 43, -1 },
611    { "glMultiDrawElementsBaseVertex", 43, -1 },
612    { "glProvokingVertex", 43, -1 },
613    { "glFenceSync", 43, -1 },
614    { "glIsSync", 43, -1 },
615    { "glDeleteSync", 43, -1 },
616    { "glClientWaitSync", 43, -1 },
617    { "glWaitSync", 43, -1 },
618    { "glGetInteger64v", 43, -1 },
619    { "glGetSynciv", 43, -1 },
620    { "glTexImage2DMultisample", 43, -1 },
621    { "glTexImage3DMultisample", 43, -1 },
622    { "glGetMultisamplefv", 43, -1 },
623    { "glSampleMaski", 43, -1 },
624    { "glBlendEquationiARB", 43, -1 },
625    { "glBlendEquationSeparateiARB", 43, -1 },
626    { "glBlendFunciARB", 43, -1 },
627    { "glBlendFuncSeparateiARB", 43, -1 },
628    { "glMinSampleShadingARB", 43, -1 },                 // XXX: Add to xml
629 // { "glNamedStringARB", 43, -1 },                      // XXX: Add to xml
630 // { "glDeleteNamedStringARB", 43, -1 },                // XXX: Add to xml
631 // { "glCompileShaderIncludeARB", 43, -1 },             // XXX: Add to xml
632 // { "glIsNamedStringARB", 43, -1 },                    // XXX: Add to xml
633 // { "glGetNamedStringARB", 43, -1 },                   // XXX: Add to xml
634 // { "glGetNamedStringivARB", 43, -1 },                 // XXX: Add to xml
635    { "glBindFragDataLocationIndexed", 43, -1 },
636    { "glGetFragDataIndex", 43, -1 },
637    { "glGenSamplers", 43, -1 },
638    { "glDeleteSamplers", 43, -1 },
639    { "glIsSampler", 43, -1 },
640    { "glBindSampler", 43, -1 },
641    { "glSamplerParameteri", 43, -1 },
642    { "glSamplerParameteriv", 43, -1 },
643    { "glSamplerParameterf", 43, -1 },
644    { "glSamplerParameterfv", 43, -1 },
645    { "glSamplerParameterIiv", 43, -1 },
646    { "glSamplerParameterIuiv", 43, -1 },
647    { "glGetSamplerParameteriv", 43, -1 },
648    { "glGetSamplerParameterIiv", 43, -1 },
649    { "glGetSamplerParameterfv", 43, -1 },
650    { "glGetSamplerParameterIuiv", 43, -1 },
651    { "glQueryCounter", 43, -1 },
652    { "glGetQueryObjecti64v", 43, -1 },
653    { "glGetQueryObjectui64v", 43, -1 },
654    { "glVertexP2ui", 43, -1 },
655    { "glVertexP2uiv", 43, -1 },
656    { "glVertexP3ui", 43, -1 },
657    { "glVertexP3uiv", 43, -1 },
658    { "glVertexP4ui", 43, -1 },
659    { "glVertexP4uiv", 43, -1 },
660    { "glTexCoordP1ui", 43, -1 },
661    { "glTexCoordP1uiv", 43, -1 },
662    { "glTexCoordP2ui", 43, -1 },
663    { "glTexCoordP2uiv", 43, -1 },
664    { "glTexCoordP3ui", 43, -1 },
665    { "glTexCoordP3uiv", 43, -1 },
666    { "glTexCoordP4ui", 43, -1 },
667    { "glTexCoordP4uiv", 43, -1 },
668    { "glMultiTexCoordP1ui", 43, -1 },
669    { "glMultiTexCoordP1uiv", 43, -1 },
670    { "glMultiTexCoordP2ui", 43, -1 },
671    { "glMultiTexCoordP2uiv", 43, -1 },
672    { "glMultiTexCoordP3ui", 43, -1 },
673    { "glMultiTexCoordP3uiv", 43, -1 },
674    { "glMultiTexCoordP4ui", 43, -1 },
675    { "glMultiTexCoordP4uiv", 43, -1 },
676    { "glNormalP3ui", 43, -1 },
677    { "glNormalP3uiv", 43, -1 },
678    { "glColorP3ui", 43, -1 },
679    { "glColorP3uiv", 43, -1 },
680    { "glColorP4ui", 43, -1 },
681    { "glColorP4uiv", 43, -1 },
682    { "glSecondaryColorP3ui", 43, -1 },
683    { "glSecondaryColorP3uiv", 43, -1 },
684    { "glVertexAttribP1ui", 43, -1 },
685    { "glVertexAttribP1uiv", 43, -1 },
686    { "glVertexAttribP2ui", 43, -1 },
687    { "glVertexAttribP2uiv", 43, -1 },
688    { "glVertexAttribP3ui", 43, -1 },
689    { "glVertexAttribP3uiv", 43, -1 },
690    { "glVertexAttribP4ui", 43, -1 },
691    { "glVertexAttribP4uiv", 43, -1 },
692    { "glDrawArraysIndirect", 43, -1 },
693    { "glDrawElementsIndirect", 43, -1 },
694    { "glBindTransformFeedback", 43, -1 },
695    { "glDeleteTransformFeedbacks", 43, -1 },
696    { "glGenTransformFeedbacks", 43, -1 },
697    { "glIsTransformFeedback", 43, -1 },
698    { "glPauseTransformFeedback", 43, -1 },
699    { "glResumeTransformFeedback", 43, -1 },
700    { "glDrawTransformFeedback", 43, -1 },
701    { "glDrawTransformFeedbackStream", 43, -1 },
702    { "glBeginQueryIndexed", 43, -1 },
703    { "glEndQueryIndexed", 43, -1 },
704    { "glGetQueryIndexediv", 43, -1 },
705    { "glReleaseShaderCompiler", 43, -1 },
706    { "glShaderBinary", 43, -1 },
707    { "glGetShaderPrecisionFormat", 43, -1 },
708    { "glDepthRangef", 43, -1 },
709    { "glClearDepthf", 43, -1 },
710    { "glGetProgramBinary", 43, -1 },
711    { "glProgramBinary", 43, -1 },
712    { "glProgramParameteri", 43, -1 },
713    { "glUseProgramStages", 43, -1 },
714    { "glActiveShaderProgram", 43, -1 },
715    { "glCreateShaderProgramv", 43, -1 },
716    { "glBindProgramPipeline", 43, -1 },
717    { "glDeleteProgramPipelines", 43, -1 },
718    { "glGenProgramPipelines", 43, -1 },
719    { "glIsProgramPipeline", 43, -1 },
720    { "glGetProgramPipelineiv", 43, -1 },
721    { "glProgramUniform1d", 43, -1 },
722    { "glProgramUniform1dv", 43, -1 },
723    { "glProgramUniform1i", 43, -1 },
724    { "glProgramUniform1iv", 43, -1 },
725    { "glProgramUniform1f", 43, -1 },
726    { "glProgramUniform1fv", 43, -1 },
727    { "glProgramUniform1ui", 43, -1 },
728    { "glProgramUniform1uiv", 43, -1 },
729    { "glProgramUniform2i", 43, -1 },
730    { "glProgramUniform2iv", 43, -1 },
731    { "glProgramUniform2f", 43, -1 },
732    { "glProgramUniform2fv", 43, -1 },
733    { "glProgramUniform2d", 40, -1 },
734    { "glProgramUniform2dv", 40, -1 },
735    { "glProgramUniform2ui", 43, -1 },
736    { "glProgramUniform2uiv", 43, -1 },
737    { "glProgramUniform3i", 43, -1 },
738    { "glProgramUniform3iv", 43, -1 },
739    { "glProgramUniform3f", 43, -1 },
740    { "glProgramUniform3fv", 43, -1 },
741    { "glProgramUniform3d", 40, -1 },
742    { "glProgramUniform3dv", 40, -1 },
743    { "glProgramUniform3ui", 43, -1 },
744    { "glProgramUniform3uiv", 43, -1 },
745    { "glProgramUniform4i", 43, -1 },
746    { "glProgramUniform4iv", 43, -1 },
747    { "glProgramUniform4d", 43, -1 },
748    { "glProgramUniform4dv", 43, -1 },
749    { "glProgramUniform4f", 43, -1 },
750    { "glProgramUniform4fv", 43, -1 },
751    { "glProgramUniform4ui", 43, -1 },
752    { "glProgramUniform4uiv", 43, -1 },
753    { "glProgramUniformMatrix2dv", 43, -1 },
754    { "glProgramUniformMatrix2fv", 43, -1 },
755    { "glProgramUniformMatrix3dv", 43, -1 },
756    { "glProgramUniformMatrix3fv", 43, -1 },
757    { "glProgramUniformMatrix4dv", 43, -1 },
758    { "glProgramUniformMatrix4fv", 43, -1 },
759    { "glProgramUniformMatrix2x3dv", 43, -1 },
760    { "glProgramUniformMatrix2x3fv", 43, -1 },
761    { "glProgramUniformMatrix3x2dv", 43, -1 },
762    { "glProgramUniformMatrix3x2fv", 43, -1 },
763    { "glProgramUniformMatrix2x4dv", 43, -1 },
764    { "glProgramUniformMatrix2x4fv", 43, -1 },
765    { "glProgramUniformMatrix4x2dv", 43, -1 },
766    { "glProgramUniformMatrix4x2fv", 43, -1 },
767    { "glProgramUniformMatrix3x4dv", 43, -1 },
768    { "glProgramUniformMatrix3x4fv", 43, -1 },
769    { "glProgramUniformMatrix4x3dv", 43, -1 },
770    { "glProgramUniformMatrix4x3fv", 43, -1 },
771    { "glValidateProgramPipeline", 43, -1 },
772    { "glGetProgramPipelineInfoLog", 43, -1 },
773    { "glGetFloati_v", 43, -1 },
774    { "glGetDoublei_v", 43, -1 },
775 // { "glCreateSyncFromCLeventARB", 43, -1 },            // XXX: Add to xml
776    { "glGetGraphicsResetStatusARB", 43, -1 },
777    { "glGetnMapdvARB", 43, -1 },
778    { "glGetnMapfvARB", 43, -1 },
779    { "glGetnMapivARB", 43, -1 },
780    { "glGetnPixelMapfvARB", 43, -1 },
781    { "glGetnPixelMapuivARB", 43, -1 },
782    { "glGetnPixelMapusvARB", 43, -1 },
783    { "glGetnPolygonStippleARB", 43, -1 },
784    { "glGetnColorTableARB", 43, -1 },
785    { "glGetnConvolutionFilterARB", 43, -1 },
786    { "glGetnSeparableFilterARB", 43, -1 },
787    { "glGetnHistogramARB", 43, -1 },
788    { "glGetnMinmaxARB", 43, -1 },
789    { "glGetnTexImageARB", 43, -1 },
790    { "glReadnPixelsARB", 43, -1 },
791    { "glGetnCompressedTexImageARB", 43, -1 },
792    { "glGetnUniformfvARB", 43, -1 },
793    { "glGetnUniformivARB", 43, -1 },
794    { "glGetnUniformuivARB", 43, -1 },
795    { "glGetnUniformdvARB", 43, -1 },
796    { "glDrawArraysInstancedBaseInstance", 43, -1 },
797    { "glDrawElementsInstancedBaseInstance", 43, -1 },
798    { "glDrawElementsInstancedBaseVertexBaseInstance", 43, -1 },
799    { "glDrawTransformFeedbackInstanced", 43, -1 },
800    { "glDrawTransformFeedbackStreamInstanced", 43, -1 },
801 // { "glGetInternalformativ", 43, -1 },                 // XXX: Add to xml
802    { "glGetActiveAtomicCounterBufferiv", 43, -1 },
803    { "glBindImageTexture", 43, -1 },
804    { "glMemoryBarrier", 43, -1 },
805    { "glTexStorage1D", 43, -1 },
806    { "glTexStorage2D", 43, -1 },
807    { "glTexStorage3D", 43, -1 },
808    { "glTextureStorage1DEXT", 43, -1 },
809    { "glTextureStorage2DEXT", 43, -1 },
810    { "glTextureStorage3DEXT", 43, -1 },
811    { "glClearBufferData", 43, -1 },
812    { "glClearBufferSubData", 43, -1 },
813 // { "glClearNamedBufferDataEXT", 43, -1 },             // XXX: Add to xml
814 // { "glClearNamedBufferSubDataEXT", 43, -1 },          // XXX: Add to xml
815    { "glCopyImageSubData", 43, -1 },
816    { "glTextureView", 43, -1 },
817    { "glBindVertexBuffer", 43, -1 },
818    { "glVertexAttribFormat", 43, -1 },
819    { "glVertexAttribIFormat", 43, -1 },
820    { "glVertexAttribLFormat", 43, -1 },
821    { "glVertexAttribBinding", 43, -1 },
822    { "glVertexBindingDivisor", 43, -1 },
823 // { "glVertexArrayBindVertexBufferEXT", 43, -1 },      // XXX: Add to xml
824 // { "glVertexArrayVertexAttribFormatEXT", 43, -1 },    // XXX: Add to xml
825 // { "glVertexArrayVertexAttribIFormatEXT", 43, -1 },   // XXX: Add to xml
826 // { "glVertexArrayVertexAttribBindingEXT", 43, -1 },   // XXX: Add to xml
827 // { "glVertexArrayVertexBindingDivisorEXT", 43, -1 },  // XXX: Add to xml
828    { "glFramebufferParameteri", 43, -1 },
829    { "glGetFramebufferParameteriv", 43, -1 },
830 // { "glNamedFramebufferParameteriEXT", 43, -1 },       // XXX: Add to xml
831 // { "glGetNamedFramebufferParameterivEXT", 43, -1 },   // XXX: Add to xml
832 // { "glGetInternalformati64v", 43, -1 },               // XXX: Add to xml
833    { "glInvalidateTexSubImage", 43, -1 },
834    { "glInvalidateTexImage", 43, -1 },
835    { "glInvalidateBufferSubData", 43, -1 },
836    { "glInvalidateBufferData", 43, -1 },
837    { "glInvalidateFramebuffer", 43, -1 },
838    { "glInvalidateSubFramebuffer", 43, -1 },
839    { "glMultiDrawArraysIndirect", 43, -1 },
840    { "glMultiDrawElementsIndirect", 43, -1 },
841    { "glGetProgramInterfaceiv", 43, -1 },
842    { "glGetProgramResourceIndex", 43, -1 },
843    { "glGetProgramResourceName", 43, -1 },
844    { "glGetProgramResourceiv", 43, -1 },
845    { "glGetProgramResourceLocation", 43, -1 },
846    { "glGetProgramResourceLocationIndex", 43, -1 },
847    { "glShaderStorageBlockBinding", 43, -1 },
848 // { "glTextureBufferRangeEXT", 43, -1 },               // XXX: Add to xml
849    { "glTexStorage2DMultisample", 43, -1 },
850    { "glTexStorage3DMultisample", 43, -1 },
851 // { "glTextureStorage2DMultisampleEXT", 43, -1 },      // XXX: Add to xml
852 // { "glTextureStorage3DMultisampleEXT", 43, -1 },      // XXX: Add to xml
853 
854 /* GL 4.5 */
855    /* aliased versions checked above */
856    //{ "glGetGraphicsResetStatus", 45, -1 },
857    //{ "glReadnPixels", 45, -1 },
858    //{ "glGetnUniformfv", 45, -1 },
859    //{ "glGetnUniformiv", 45, -1 },
860    //{ "glGetnUniformuiv", 45, -1 },
861    { "glMemoryBarrierByRegion", 45, -1 },
862 
863    /* GL_ARB_internalformat_query */
864    { "glGetInternalformativ", 30, -1 },
865 
866    /* GL_ARB_internalformat_query */
867    { "glGetInternalformati64v", 30, -1 },
868 
869    /* GL_ARB_multi_bind */
870    { "glBindBuffersBase", 44, -1 },
871    { "glBindBuffersRange", 44, -1 },
872    { "glBindTextures", 44, -1 },
873    { "glBindSamplers", 44, -1 },
874    { "glBindImageTextures", 44, -1 },
875    { "glBindVertexBuffers", 44, -1 },
876 
877    /* GL_KHR_debug/GL_ARB_debug_output */
878    { "glPushDebugGroup", 11, -1 },
879    { "glPopDebugGroup", 11, -1 },
880    { "glDebugMessageCallback", 11, -1 },
881    { "glDebugMessageControl", 11, -1 },
882    { "glDebugMessageInsert", 11, -1 },
883    { "glGetDebugMessageLog", 11, -1 },
884    { "glGetObjectLabel", 11, -1 },
885    { "glGetObjectPtrLabel", 11, -1 },
886    { "glObjectLabel", 11, -1 },
887    { "glObjectPtrLabel", 11, -1 },
888    /* aliased versions checked above */
889    //{ "glDebugMessageControlARB", 11, -1 },
890    //{ "glDebugMessageInsertARB", 11, -1 },
891    //{ "glDebugMessageCallbackARB", 11, -1 },
892    //{ "glGetDebugMessageLogARB", 11, -1 },
893 
894    /* GL_AMD_performance_monitor */
895    { "glGetPerfMonitorGroupsAMD", 11, -1 },
896    { "glGetPerfMonitorCountersAMD", 11, -1 },
897    { "glGetPerfMonitorGroupStringAMD", 11, -1 },
898    { "glGetPerfMonitorCounterStringAMD", 11, -1 },
899    { "glGetPerfMonitorCounterInfoAMD", 11, -1 },
900    { "glGenPerfMonitorsAMD", 11, -1 },
901    { "glDeletePerfMonitorsAMD", 11, -1 },
902    { "glSelectPerfMonitorCountersAMD", 11, -1 },
903    { "glBeginPerfMonitorAMD", 11, -1 },
904    { "glEndPerfMonitorAMD", 11, -1 },
905    { "glGetPerfMonitorCounterDataAMD", 11, -1 },
906 
907    /* GL_INTEL_performance_query */
908    { "glGetFirstPerfQueryIdINTEL", 30, -1 },
909    { "glGetNextPerfQueryIdINTEL", 30, -1 },
910    { "glGetPerfQueryIdByNameINTEL", 30, -1 },
911    { "glGetPerfQueryInfoINTEL", 30, -1 },
912    { "glGetPerfCounterInfoINTEL", 30, -1 },
913    { "glCreatePerfQueryINTEL", 30, -1 },
914    { "glDeletePerfQueryINTEL", 30, -1 },
915    { "glBeginPerfQueryINTEL", 30, -1 },
916    { "glEndPerfQueryINTEL", 30, -1 },
917    { "glGetPerfQueryDataINTEL", 30, -1 },
918 
919    /* GL_NV_vdpau_interop */
920    { "glVDPAUInitNV", 11, -1 },
921    { "glVDPAUFiniNV", 11, -1 },
922    { "glVDPAURegisterVideoSurfaceNV", 11, -1 },
923    { "glVDPAURegisterOutputSurfaceNV", 11, -1 },
924    { "glVDPAUIsSurfaceNV", 11, -1 },
925    { "glVDPAUUnregisterSurfaceNV", 11, -1 },
926    { "glVDPAUGetSurfaceivNV", 11, -1 },
927    { "glVDPAUSurfaceAccessNV", 11, -1 },
928    { "glVDPAUMapSurfacesNV", 11, -1 },
929    { "glVDPAUUnmapSurfacesNV", 11, -1 },
930 
931    /* GL_ARB_buffer_storage */
932    { "glBufferStorage", 43, -1 },
933 
934    /* GL_ARB_clear_texture */
935    { "glClearTexImage", 13, -1 },
936    { "glClearTexSubImage", 13, -1 },
937 
938    /* GL_ARB_clip_control */
939    { "glClipControl", 45, -1 },
940 
941    /* GL_ARB_compute_shader */
942    { "glDispatchCompute", 43, -1 },
943    { "glDispatchComputeIndirect", 43, -1 },
944 
945    /* GL_ARB_compute_variable_group_size */
946    { "glDispatchComputeGroupSizeARB", 43, -1 },
947 
948    /* GL_EXT_polygon_offset_clamp */
949    { "glPolygonOffsetClampEXT", 11, -1 },
950 
951    /* GL_ARB_get_texture_sub_image */
952    { "glGetTextureSubImage", 20, -1 },
953    { "glGetCompressedTextureSubImage", 20, -1 },
954 
955    /* GL_GREMEDY_string_marker */
956    { "glStringMarkerGREMEDY", 15, -1 },
957 
958    /* GL_EXT_window_rectangles */
959    { "glWindowRectanglesEXT", 30, -1 },
960 
961    /* GL_KHR_blend_equation_advanced */
962    { "glBlendBarrierKHR", 20, -1 },
963 
964    { NULL, 0, -1 }
965 };
966 
967 const struct function gl_compatibility_functions_possible[] = {
968    { "glBindVertexArrayAPPLE", 10, -1 },
969    { "glGenVertexArraysAPPLE", 10, -1 },
970    { "glBindRenderbufferEXT", 10, -1 },
971    { "glBindFramebufferEXT", 10, -1 },
972    { "glNewList", 10, _gloffset_NewList },
973    { "glEndList", 10, _gloffset_EndList },
974    { "glCallList", 10, _gloffset_CallList },
975    { "glCallLists", 10, _gloffset_CallLists },
976    { "glDeleteLists", 10, _gloffset_DeleteLists },
977    { "glGenLists", 10, _gloffset_GenLists },
978    { "glListBase", 10, _gloffset_ListBase },
979    { "glBegin", 10, _gloffset_Begin },
980    { "glBitmap", 10, _gloffset_Bitmap },
981    { "glColor3b", 10, _gloffset_Color3b },
982    { "glColor3bv", 10, _gloffset_Color3bv },
983    { "glColor3d", 10, _gloffset_Color3d },
984    { "glColor3dv", 10, _gloffset_Color3dv },
985    { "glColor3f", 10, _gloffset_Color3f },
986    { "glColor3fv", 10, _gloffset_Color3fv },
987    { "glColor3i", 10, _gloffset_Color3i },
988    { "glColor3iv", 10, _gloffset_Color3iv },
989    { "glColor3s", 10, _gloffset_Color3s },
990    { "glColor3sv", 10, _gloffset_Color3sv },
991    { "glColor3ub", 10, _gloffset_Color3ub },
992    { "glColor3ubv", 10, _gloffset_Color3ubv },
993    { "glColor3ui", 10, _gloffset_Color3ui },
994    { "glColor3uiv", 10, _gloffset_Color3uiv },
995    { "glColor3us", 10, _gloffset_Color3us },
996    { "glColor3usv", 10, _gloffset_Color3usv },
997    { "glColor4b", 10, _gloffset_Color4b },
998    { "glColor4bv", 10, _gloffset_Color4bv },
999    { "glColor4d", 10, _gloffset_Color4d },
1000    { "glColor4dv", 10, _gloffset_Color4dv },
1001    { "glColor4f", 10, _gloffset_Color4f },
1002    { "glColor4fv", 10, _gloffset_Color4fv },
1003    { "glColor4i", 10, _gloffset_Color4i },
1004    { "glColor4iv", 10, _gloffset_Color4iv },
1005    { "glColor4s", 10, _gloffset_Color4s },
1006    { "glColor4sv", 10, _gloffset_Color4sv },
1007    { "glColor4ub", 10, _gloffset_Color4ub },
1008    { "glColor4ubv", 10, _gloffset_Color4ubv },
1009    { "glColor4ui", 10, _gloffset_Color4ui },
1010    { "glColor4uiv", 10, _gloffset_Color4uiv },
1011    { "glColor4us", 10, _gloffset_Color4us },
1012    { "glColor4usv", 10, _gloffset_Color4usv },
1013    { "glEdgeFlag", 10, _gloffset_EdgeFlag },
1014    { "glEdgeFlagv", 10, _gloffset_EdgeFlagv },
1015    { "glEnd", 10, _gloffset_End },
1016    { "glIndexd", 10, _gloffset_Indexd },
1017    { "glIndexdv", 10, _gloffset_Indexdv },
1018    { "glIndexf", 10, _gloffset_Indexf },
1019    { "glIndexfv", 10, _gloffset_Indexfv },
1020    { "glIndexi", 10, _gloffset_Indexi },
1021    { "glIndexiv", 10, _gloffset_Indexiv },
1022    { "glIndexs", 10, _gloffset_Indexs },
1023    { "glIndexsv", 10, _gloffset_Indexsv },
1024    { "glNormal3b", 10, _gloffset_Normal3b },
1025    { "glNormal3bv", 10, _gloffset_Normal3bv },
1026    { "glNormal3d", 10, _gloffset_Normal3d },
1027    { "glNormal3dv", 10, _gloffset_Normal3dv },
1028    { "glNormal3f", 10, _gloffset_Normal3f },
1029    { "glNormal3fv", 10, _gloffset_Normal3fv },
1030    { "glNormal3i", 10, _gloffset_Normal3i },
1031    { "glNormal3iv", 10, _gloffset_Normal3iv },
1032    { "glNormal3s", 10, _gloffset_Normal3s },
1033    { "glNormal3sv", 10, _gloffset_Normal3sv },
1034    { "glRasterPos2d", 10, _gloffset_RasterPos2d },
1035    { "glRasterPos2dv", 10, _gloffset_RasterPos2dv },
1036    { "glRasterPos2f", 10, _gloffset_RasterPos2f },
1037    { "glRasterPos2fv", 10, _gloffset_RasterPos2fv },
1038    { "glRasterPos2i", 10, _gloffset_RasterPos2i },
1039    { "glRasterPos2iv", 10, _gloffset_RasterPos2iv },
1040    { "glRasterPos2s", 10, _gloffset_RasterPos2s },
1041    { "glRasterPos2sv", 10, _gloffset_RasterPos2sv },
1042    { "glRasterPos3d", 10, _gloffset_RasterPos3d },
1043    { "glRasterPos3dv", 10, _gloffset_RasterPos3dv },
1044    { "glRasterPos3f", 10, _gloffset_RasterPos3f },
1045    { "glRasterPos3fv", 10, _gloffset_RasterPos3fv },
1046    { "glRasterPos3i", 10, _gloffset_RasterPos3i },
1047    { "glRasterPos3iv", 10, _gloffset_RasterPos3iv },
1048    { "glRasterPos3s", 10, _gloffset_RasterPos3s },
1049    { "glRasterPos3sv", 10, _gloffset_RasterPos3sv },
1050    { "glRasterPos4d", 10, _gloffset_RasterPos4d },
1051    { "glRasterPos4dv", 10, _gloffset_RasterPos4dv },
1052    { "glRasterPos4f", 10, _gloffset_RasterPos4f },
1053    { "glRasterPos4fv", 10, _gloffset_RasterPos4fv },
1054    { "glRasterPos4i", 10, _gloffset_RasterPos4i },
1055    { "glRasterPos4iv", 10, _gloffset_RasterPos4iv },
1056    { "glRasterPos4s", 10, _gloffset_RasterPos4s },
1057    { "glRasterPos4sv", 10, _gloffset_RasterPos4sv },
1058    { "glRectd", 10, _gloffset_Rectd },
1059    { "glRectdv", 10, _gloffset_Rectdv },
1060    { "glRectf", 10, _gloffset_Rectf },
1061    { "glRectfv", 10, _gloffset_Rectfv },
1062    { "glRecti", 10, _gloffset_Recti },
1063    { "glRectiv", 10, _gloffset_Rectiv },
1064    { "glRects", 10, _gloffset_Rects },
1065    { "glRectsv", 10, _gloffset_Rectsv },
1066    { "glTexCoord1d", 10, _gloffset_TexCoord1d },
1067    { "glTexCoord1dv", 10, _gloffset_TexCoord1dv },
1068    { "glTexCoord1f", 10, _gloffset_TexCoord1f },
1069    { "glTexCoord1fv", 10, _gloffset_TexCoord1fv },
1070    { "glTexCoord1i", 10, _gloffset_TexCoord1i },
1071    { "glTexCoord1iv", 10, _gloffset_TexCoord1iv },
1072    { "glTexCoord1s", 10, _gloffset_TexCoord1s },
1073    { "glTexCoord1sv", 10, _gloffset_TexCoord1sv },
1074    { "glTexCoord2d", 10, _gloffset_TexCoord2d },
1075    { "glTexCoord2dv", 10, _gloffset_TexCoord2dv },
1076    { "glTexCoord2f", 10, _gloffset_TexCoord2f },
1077    { "glTexCoord2fv", 10, _gloffset_TexCoord2fv },
1078    { "glTexCoord2i", 10, _gloffset_TexCoord2i },
1079    { "glTexCoord2iv", 10, _gloffset_TexCoord2iv },
1080    { "glTexCoord2s", 10, _gloffset_TexCoord2s },
1081    { "glTexCoord2sv", 10, _gloffset_TexCoord2sv },
1082    { "glTexCoord3d", 10, _gloffset_TexCoord3d },
1083    { "glTexCoord3dv", 10, _gloffset_TexCoord3dv },
1084    { "glTexCoord3f", 10, _gloffset_TexCoord3f },
1085    { "glTexCoord3fv", 10, _gloffset_TexCoord3fv },
1086    { "glTexCoord3i", 10, _gloffset_TexCoord3i },
1087    { "glTexCoord3iv", 10, _gloffset_TexCoord3iv },
1088    { "glTexCoord3s", 10, _gloffset_TexCoord3s },
1089    { "glTexCoord3sv", 10, _gloffset_TexCoord3sv },
1090    { "glTexCoord4d", 10, _gloffset_TexCoord4d },
1091    { "glTexCoord4dv", 10, _gloffset_TexCoord4dv },
1092    { "glTexCoord4f", 10, _gloffset_TexCoord4f },
1093    { "glTexCoord4fv", 10, _gloffset_TexCoord4fv },
1094    { "glTexCoord4i", 10, _gloffset_TexCoord4i },
1095    { "glTexCoord4iv", 10, _gloffset_TexCoord4iv },
1096    { "glTexCoord4s", 10, _gloffset_TexCoord4s },
1097    { "glTexCoord4sv", 10, _gloffset_TexCoord4sv },
1098    { "glVertex2d", 10, _gloffset_Vertex2d },
1099    { "glVertex2dv", 10, _gloffset_Vertex2dv },
1100    { "glVertex2f", 10, _gloffset_Vertex2f },
1101    { "glVertex2fv", 10, _gloffset_Vertex2fv },
1102    { "glVertex2i", 10, _gloffset_Vertex2i },
1103    { "glVertex2iv", 10, _gloffset_Vertex2iv },
1104    { "glVertex2s", 10, _gloffset_Vertex2s },
1105    { "glVertex2sv", 10, _gloffset_Vertex2sv },
1106    { "glVertex3d", 10, _gloffset_Vertex3d },
1107    { "glVertex3dv", 10, _gloffset_Vertex3dv },
1108    { "glVertex3f", 10, _gloffset_Vertex3f },
1109    { "glVertex3fv", 10, _gloffset_Vertex3fv },
1110    { "glVertex3i", 10, _gloffset_Vertex3i },
1111    { "glVertex3iv", 10, _gloffset_Vertex3iv },
1112    { "glVertex3s", 10, _gloffset_Vertex3s },
1113    { "glVertex3sv", 10, _gloffset_Vertex3sv },
1114    { "glVertex4d", 10, _gloffset_Vertex4d },
1115    { "glVertex4dv", 10, _gloffset_Vertex4dv },
1116    { "glVertex4f", 10, _gloffset_Vertex4f },
1117    { "glVertex4fv", 10, _gloffset_Vertex4fv },
1118    { "glVertex4i", 10, _gloffset_Vertex4i },
1119    { "glVertex4iv", 10, _gloffset_Vertex4iv },
1120    { "glVertex4s", 10, _gloffset_Vertex4s },
1121    { "glVertex4sv", 10, _gloffset_Vertex4sv },
1122    { "glClipPlane", 10, _gloffset_ClipPlane },
1123    { "glColorMaterial", 10, _gloffset_ColorMaterial },
1124    { "glFogf", 10, _gloffset_Fogf },
1125    { "glFogfv", 10, _gloffset_Fogfv },
1126    { "glFogi", 10, _gloffset_Fogi },
1127    { "glFogiv", 10, _gloffset_Fogiv },
1128    { "glLightf", 10, _gloffset_Lightf },
1129    { "glLightfv", 10, _gloffset_Lightfv },
1130    { "glLighti", 10, _gloffset_Lighti },
1131    { "glLightiv", 10, _gloffset_Lightiv },
1132    { "glLightModelf", 10, _gloffset_LightModelf },
1133    { "glLightModelfv", 10, _gloffset_LightModelfv },
1134    { "glLightModeli", 10, _gloffset_LightModeli },
1135    { "glLightModeliv", 10, _gloffset_LightModeliv },
1136    { "glLineStipple", 10, _gloffset_LineStipple },
1137    { "glMaterialf", 10, _gloffset_Materialf },
1138    { "glMaterialfv", 10, _gloffset_Materialfv },
1139    { "glMateriali", 10, _gloffset_Materiali },
1140    { "glMaterialiv", 10, _gloffset_Materialiv },
1141    { "glPolygonStipple", 10, _gloffset_PolygonStipple },
1142    { "glShadeModel", 10, _gloffset_ShadeModel },
1143    { "glTexEnvf", 10, _gloffset_TexEnvf },
1144    { "glTexEnvfv", 10, _gloffset_TexEnvfv },
1145    { "glTexEnvi", 10, _gloffset_TexEnvi },
1146    { "glTexEnviv", 10, _gloffset_TexEnviv },
1147    { "glTexGend", 10, _gloffset_TexGend },
1148    { "glTexGendv", 10, _gloffset_TexGendv },
1149    { "glTexGenf", 10, _gloffset_TexGenf },
1150    { "glTexGenfv", 10, _gloffset_TexGenfv },
1151    { "glTexGeni", 10, _gloffset_TexGeni },
1152    { "glTexGeniv", 10, _gloffset_TexGeniv },
1153    { "glFeedbackBuffer", 10, _gloffset_FeedbackBuffer },
1154    { "glSelectBuffer", 10, _gloffset_SelectBuffer },
1155    { "glRenderMode", 10, _gloffset_RenderMode },
1156    { "glInitNames", 10, _gloffset_InitNames },
1157    { "glLoadName", 10, _gloffset_LoadName },
1158    { "glPassThrough", 10, _gloffset_PassThrough },
1159    { "glPopName", 10, _gloffset_PopName },
1160    { "glPushName", 10, _gloffset_PushName },
1161    { "glClearAccum", 10, _gloffset_ClearAccum },
1162    { "glClearIndex", 10, _gloffset_ClearIndex },
1163    { "glIndexMask", 10, _gloffset_IndexMask },
1164    { "glAccum", 10, _gloffset_Accum },
1165    { "glPopAttrib", 10, _gloffset_PopAttrib },
1166    { "glPushAttrib", 10, _gloffset_PushAttrib },
1167    { "glMap1d", 10, _gloffset_Map1d },
1168    { "glMap1f", 10, _gloffset_Map1f },
1169    { "glMap2d", 10, _gloffset_Map2d },
1170    { "glMap2f", 10, _gloffset_Map2f },
1171    { "glMapGrid1d", 10, _gloffset_MapGrid1d },
1172    { "glMapGrid1f", 10, _gloffset_MapGrid1f },
1173    { "glMapGrid2d", 10, _gloffset_MapGrid2d },
1174    { "glMapGrid2f", 10, _gloffset_MapGrid2f },
1175    { "glEvalCoord1d", 10, _gloffset_EvalCoord1d },
1176    { "glEvalCoord1dv", 10, _gloffset_EvalCoord1dv },
1177    { "glEvalCoord1f", 10, _gloffset_EvalCoord1f },
1178    { "glEvalCoord1fv", 10, _gloffset_EvalCoord1fv },
1179    { "glEvalCoord2d", 10, _gloffset_EvalCoord2d },
1180    { "glEvalCoord2dv", 10, _gloffset_EvalCoord2dv },
1181    { "glEvalCoord2f", 10, _gloffset_EvalCoord2f },
1182    { "glEvalCoord2fv", 10, _gloffset_EvalCoord2fv },
1183    { "glEvalMesh1", 10, _gloffset_EvalMesh1 },
1184    { "glEvalPoint1", 10, _gloffset_EvalPoint1 },
1185    { "glEvalMesh2", 10, _gloffset_EvalMesh2 },
1186    { "glEvalPoint2", 10, _gloffset_EvalPoint2 },
1187    { "glAlphaFunc", 10, _gloffset_AlphaFunc },
1188    { "glPixelZoom", 10, _gloffset_PixelZoom },
1189    { "glPixelTransferf", 10, _gloffset_PixelTransferf },
1190    { "glPixelTransferi", 10, _gloffset_PixelTransferi },
1191    { "glPixelMapfv", 10, _gloffset_PixelMapfv },
1192    { "glPixelMapuiv", 10, _gloffset_PixelMapuiv },
1193    { "glPixelMapusv", 10, _gloffset_PixelMapusv },
1194    { "glCopyPixels", 10, _gloffset_CopyPixels },
1195    { "glDrawPixels", 10, _gloffset_DrawPixels },
1196    { "glGetClipPlane", 10, _gloffset_GetClipPlane },
1197    { "glGetLightfv", 10, _gloffset_GetLightfv },
1198    { "glGetLightiv", 10, _gloffset_GetLightiv },
1199    { "glGetMapdv", 10, _gloffset_GetMapdv },
1200    { "glGetMapfv", 10, _gloffset_GetMapfv },
1201    { "glGetMapiv", 10, _gloffset_GetMapiv },
1202    { "glGetMaterialfv", 10, _gloffset_GetMaterialfv },
1203    { "glGetMaterialiv", 10, _gloffset_GetMaterialiv },
1204    { "glGetPixelMapfv", 10, _gloffset_GetPixelMapfv },
1205    { "glGetPixelMapuiv", 10, _gloffset_GetPixelMapuiv },
1206    { "glGetPixelMapusv", 10, _gloffset_GetPixelMapusv },
1207    { "glGetPolygonStipple", 10, _gloffset_GetPolygonStipple },
1208    { "glGetTexEnvfv", 10, _gloffset_GetTexEnvfv },
1209    { "glGetTexEnviv", 10, _gloffset_GetTexEnviv },
1210    { "glGetTexGendv", 10, _gloffset_GetTexGendv },
1211    { "glGetTexGenfv", 10, _gloffset_GetTexGenfv },
1212    { "glGetTexGeniv", 10, _gloffset_GetTexGeniv },
1213    { "glIsList", 10, _gloffset_IsList },
1214    { "glFrustum", 10, _gloffset_Frustum },
1215    { "glLoadIdentity", 10, _gloffset_LoadIdentity },
1216    { "glLoadMatrixf", 10, _gloffset_LoadMatrixf },
1217    { "glLoadMatrixd", 10, _gloffset_LoadMatrixd },
1218    { "glMatrixMode", 10, _gloffset_MatrixMode },
1219    { "glMultMatrixf", 10, _gloffset_MultMatrixf },
1220    { "glMultMatrixd", 10, _gloffset_MultMatrixd },
1221    { "glOrtho", 10, _gloffset_Ortho },
1222    { "glPopMatrix", 10, _gloffset_PopMatrix },
1223    { "glPushMatrix", 10, _gloffset_PushMatrix },
1224    { "glRotated", 10, _gloffset_Rotated },
1225    { "glRotatef", 10, _gloffset_Rotatef },
1226    { "glScaled", 10, _gloffset_Scaled },
1227    { "glScalef", 10, _gloffset_Scalef },
1228    { "glTranslated", 10, _gloffset_Translated },
1229    { "glTranslatef", 10, _gloffset_Translatef },
1230    { "glArrayElement", 10, _gloffset_ArrayElement },
1231    { "glColorPointer", 10, _gloffset_ColorPointer },
1232    { "glDisableClientState", 10, _gloffset_DisableClientState },
1233    { "glEdgeFlagPointer", 10, _gloffset_EdgeFlagPointer },
1234    { "glEnableClientState", 10, _gloffset_EnableClientState },
1235    { "glIndexPointer", 10, _gloffset_IndexPointer },
1236    { "glInterleavedArrays", 10, _gloffset_InterleavedArrays },
1237    { "glNormalPointer", 10, _gloffset_NormalPointer },
1238    { "glTexCoordPointer", 10, _gloffset_TexCoordPointer },
1239    { "glVertexPointer", 10, _gloffset_VertexPointer },
1240    { "glAreTexturesResident", 10, _gloffset_AreTexturesResident },
1241    { "glPrioritizeTextures", 10, _gloffset_PrioritizeTextures },
1242    { "glIndexub", 10, _gloffset_Indexub },
1243    { "glIndexubv", 10, _gloffset_Indexubv },
1244    { "glPopClientAttrib", 10, _gloffset_PopClientAttrib },
1245    { "glPushClientAttrib", 10, _gloffset_PushClientAttrib },
1246    { "glColorTable", 10, _gloffset_ColorTable },
1247    { "glColorTableParameterfv", 10, _gloffset_ColorTableParameterfv },
1248    { "glColorTableParameteriv", 10, _gloffset_ColorTableParameteriv },
1249    { "glCopyColorTable", 10, _gloffset_CopyColorTable },
1250    { "glGetColorTable", 10, _gloffset_GetColorTable },
1251    { "glGetColorTableParameterfv", 10, _gloffset_GetColorTableParameterfv },
1252    { "glGetColorTableParameteriv", 10, _gloffset_GetColorTableParameteriv },
1253    { "glColorSubTable", 10, _gloffset_ColorSubTable },
1254    { "glCopyColorSubTable", 10, _gloffset_CopyColorSubTable },
1255    { "glConvolutionFilter1D", 10, _gloffset_ConvolutionFilter1D },
1256    { "glConvolutionFilter2D", 10, _gloffset_ConvolutionFilter2D },
1257    { "glConvolutionParameterf", 10, _gloffset_ConvolutionParameterf },
1258    { "glConvolutionParameterfv", 10, _gloffset_ConvolutionParameterfv },
1259    { "glConvolutionParameteri", 10, _gloffset_ConvolutionParameteri },
1260    { "glConvolutionParameteriv", 10, _gloffset_ConvolutionParameteriv },
1261    { "glCopyConvolutionFilter1D", 10, _gloffset_CopyConvolutionFilter1D },
1262    { "glCopyConvolutionFilter2D", 10, _gloffset_CopyConvolutionFilter2D },
1263    { "glGetConvolutionFilter", 10, _gloffset_GetConvolutionFilter },
1264    { "glGetConvolutionParameterfv", 10, _gloffset_GetConvolutionParameterfv },
1265    { "glGetConvolutionParameteriv", 10, _gloffset_GetConvolutionParameteriv },
1266    { "glGetSeparableFilter", 10, _gloffset_GetSeparableFilter },
1267    { "glSeparableFilter2D", 10, _gloffset_SeparableFilter2D },
1268    { "glGetHistogram", 10, _gloffset_GetHistogram },
1269    { "glGetHistogramParameterfv", 10, _gloffset_GetHistogramParameterfv },
1270    { "glGetHistogramParameteriv", 10, _gloffset_GetHistogramParameteriv },
1271    { "glGetMinmax", 10, _gloffset_GetMinmax },
1272    { "glGetMinmaxParameterfv", 10, _gloffset_GetMinmaxParameterfv },
1273    { "glGetMinmaxParameteriv", 10, _gloffset_GetMinmaxParameteriv },
1274    { "glHistogram", 10, _gloffset_Histogram },
1275    { "glMinmax", 10, _gloffset_Minmax },
1276    { "glResetHistogram", 10, _gloffset_ResetHistogram },
1277    { "glResetMinmax", 10, _gloffset_ResetMinmax },
1278    { "glClientActiveTexture", 10, _gloffset_ClientActiveTexture },
1279    { "glMultiTexCoord1d", 10, _gloffset_MultiTexCoord1d },
1280    { "glMultiTexCoord1dv", 10, _gloffset_MultiTexCoord1dv },
1281    { "glMultiTexCoord1f", 10, _gloffset_MultiTexCoord1fARB },
1282    { "glMultiTexCoord1fv", 10, _gloffset_MultiTexCoord1fvARB },
1283    { "glMultiTexCoord1i", 10, _gloffset_MultiTexCoord1i },
1284    { "glMultiTexCoord1iv", 10, _gloffset_MultiTexCoord1iv },
1285    { "glMultiTexCoord1s", 10, _gloffset_MultiTexCoord1s },
1286    { "glMultiTexCoord1sv", 10, _gloffset_MultiTexCoord1sv },
1287    { "glMultiTexCoord2d", 10, _gloffset_MultiTexCoord2d },
1288    { "glMultiTexCoord2dv", 10, _gloffset_MultiTexCoord2dv },
1289    { "glMultiTexCoord2f", 10, _gloffset_MultiTexCoord2fARB },
1290    { "glMultiTexCoord2fv", 10, _gloffset_MultiTexCoord2fvARB },
1291    { "glMultiTexCoord2i", 10, _gloffset_MultiTexCoord2i },
1292    { "glMultiTexCoord2iv", 10, _gloffset_MultiTexCoord2iv },
1293    { "glMultiTexCoord2s", 10, _gloffset_MultiTexCoord2s },
1294    { "glMultiTexCoord2sv", 10, _gloffset_MultiTexCoord2sv },
1295    { "glMultiTexCoord3d", 10, _gloffset_MultiTexCoord3d },
1296    { "glMultiTexCoord3dv", 10, _gloffset_MultiTexCoord3dv },
1297    { "glMultiTexCoord3f", 10, _gloffset_MultiTexCoord3fARB },
1298    { "glMultiTexCoord3fv", 10, _gloffset_MultiTexCoord3fvARB },
1299    { "glMultiTexCoord3i", 10, _gloffset_MultiTexCoord3i },
1300    { "glMultiTexCoord3iv", 10, _gloffset_MultiTexCoord3iv },
1301    { "glMultiTexCoord3s", 10, _gloffset_MultiTexCoord3s },
1302    { "glMultiTexCoord3sv", 10, _gloffset_MultiTexCoord3sv },
1303    { "glMultiTexCoord4d", 10, _gloffset_MultiTexCoord4d },
1304    { "glMultiTexCoord4dv", 10, _gloffset_MultiTexCoord4dv },
1305    { "glMultiTexCoord4f", 10, _gloffset_MultiTexCoord4fARB },
1306    { "glMultiTexCoord4fv", 10, _gloffset_MultiTexCoord4fvARB },
1307    { "glMultiTexCoord4i", 10, _gloffset_MultiTexCoord4i },
1308    { "glMultiTexCoord4iv", 10, _gloffset_MultiTexCoord4iv },
1309    { "glMultiTexCoord4s", 10, _gloffset_MultiTexCoord4s },
1310    { "glMultiTexCoord4sv", 10, _gloffset_MultiTexCoord4sv },
1311    { "glLoadTransposeMatrixf", 10, -1 },
1312    { "glLoadTransposeMatrixd", 10, -1 },
1313    { "glMultTransposeMatrixf", 10, -1 },
1314    { "glMultTransposeMatrixd", 10, -1 },
1315    { "glFogCoordf", 10, -1 },
1316    { "glFogCoordfv", 10, -1 },
1317    { "glFogCoordd", 10, -1 },
1318    { "glFogCoorddv", 10, -1 },
1319    { "glFogCoordPointer", 10, -1 },
1320    { "glSecondaryColor3b", 10, -1 },
1321    { "glSecondaryColor3bv", 10, -1 },
1322    { "glSecondaryColor3d", 10, -1 },
1323    { "glSecondaryColor3dv", 10, -1 },
1324    { "glSecondaryColor3f", 10, -1 },
1325    { "glSecondaryColor3fv", 10, -1 },
1326    { "glSecondaryColor3i", 10, -1 },
1327    { "glSecondaryColor3iv", 10, -1 },
1328    { "glSecondaryColor3s", 10, -1 },
1329    { "glSecondaryColor3sv", 10, -1 },
1330    { "glSecondaryColor3ub", 10, -1 },
1331    { "glSecondaryColor3ubv", 10, -1 },
1332    { "glSecondaryColor3ui", 10, -1 },
1333    { "glSecondaryColor3uiv", 10, -1 },
1334    { "glSecondaryColor3us", 10, -1 },
1335    { "glSecondaryColor3usv", 10, -1 },
1336    { "glSecondaryColorPointer", 10, -1 },
1337    { "glWindowPos2d", 10, -1 },
1338    { "glWindowPos2dv", 10, -1 },
1339    { "glWindowPos2f", 10, -1 },
1340    { "glWindowPos2fv", 10, -1 },
1341    { "glWindowPos2i", 10, -1 },
1342    { "glWindowPos2iv", 10, -1 },
1343    { "glWindowPos2s", 10, -1 },
1344    { "glWindowPos2sv", 10, -1 },
1345    { "glWindowPos3d", 10, -1 },
1346    { "glWindowPos3dv", 10, -1 },
1347    { "glWindowPos3f", 10, -1 },
1348    { "glWindowPos3fv", 10, -1 },
1349    { "glWindowPos3i", 10, -1 },
1350    { "glWindowPos3iv", 10, -1 },
1351    { "glWindowPos3s", 10, -1 },
1352    { "glWindowPos3sv", 10, -1 },
1353    { "glProgramStringARB", 10, -1 },
1354    { "glProgramEnvParameter4dARB", 10, -1 },
1355    { "glProgramEnvParameter4dvARB", 10, -1 },
1356    { "glProgramEnvParameter4fARB", 10, -1 },
1357    { "glProgramEnvParameter4fvARB", 10, -1 },
1358    { "glProgramLocalParameter4dARB", 10, -1 },
1359    { "glProgramLocalParameter4dvARB", 10, -1 },
1360    { "glProgramLocalParameter4fARB", 10, -1 },
1361    { "glProgramLocalParameter4fvARB", 10, -1 },
1362    { "glGetProgramEnvParameterdvARB", 10, -1 },
1363    { "glGetProgramEnvParameterfvARB", 10, -1 },
1364    { "glGetProgramLocalParameterdvARB", 10, -1 },
1365    { "glGetProgramLocalParameterfvARB", 10, -1 },
1366    { "glGetProgramivARB", 10, -1 },
1367    { "glGetProgramStringARB", 10, -1 },
1368    { "glPolygonOffsetEXT", 10, -1 },
1369    { "glColorPointerEXT", 10, -1 },
1370    { "glEdgeFlagPointerEXT", 10, -1 },
1371    { "glIndexPointerEXT", 10, -1 },
1372    { "glNormalPointerEXT", 10, -1 },
1373    { "glTexCoordPointerEXT", 10, -1 },
1374    { "glVertexPointerEXT", 10, -1 },
1375    { "glLockArraysEXT", 10, -1 },
1376    { "glUnlockArraysEXT", 10, -1 },
1377    { "glWindowPos4dMESA", 10, -1 },
1378    { "glWindowPos4dvMESA", 10, -1 },
1379    { "glWindowPos4fMESA", 10, -1 },
1380    { "glWindowPos4fvMESA", 10, -1 },
1381    { "glWindowPos4iMESA", 10, -1 },
1382    { "glWindowPos4ivMESA", 10, -1 },
1383    { "glWindowPos4sMESA", 10, -1 },
1384    { "glWindowPos4svMESA", 10, -1 },
1385    { "glBindProgramNV", 10, -1 },
1386    { "glDeleteProgramsNV", 10, -1 },
1387    { "glGenProgramsNV", 10, -1 },
1388    { "glIsProgramNV", 10, -1 },
1389    { "glVertexAttrib1sNV", 10, -1 },
1390    { "glVertexAttrib1svNV", 10, -1 },
1391    { "glVertexAttrib2sNV", 10, -1 },
1392    { "glVertexAttrib2svNV", 10, -1 },
1393    { "glVertexAttrib3sNV", 10, -1 },
1394    { "glVertexAttrib3svNV", 10, -1 },
1395    { "glVertexAttrib4sNV", 10, -1 },
1396    { "glVertexAttrib4svNV", 10, -1 },
1397    { "glVertexAttrib1fNV", 10, -1 },
1398    { "glVertexAttrib1fvNV", 10, -1 },
1399    { "glVertexAttrib2fNV", 10, -1 },
1400    { "glVertexAttrib2fvNV", 10, -1 },
1401    { "glVertexAttrib3fNV", 10, -1 },
1402    { "glVertexAttrib3fvNV", 10, -1 },
1403    { "glVertexAttrib4fNV", 10, -1 },
1404    { "glVertexAttrib4fvNV", 10, -1 },
1405    { "glVertexAttrib1dNV", 10, -1 },
1406    { "glVertexAttrib1dvNV", 10, -1 },
1407    { "glVertexAttrib2dNV", 10, -1 },
1408    { "glVertexAttrib2dvNV", 10, -1 },
1409    { "glVertexAttrib3dNV", 10, -1 },
1410    { "glVertexAttrib3dvNV", 10, -1 },
1411    { "glVertexAttrib4dNV", 10, -1 },
1412    { "glVertexAttrib4dvNV", 10, -1 },
1413    { "glVertexAttrib4ubNV", 10, -1 },
1414    { "glVertexAttrib4ubvNV", 10, -1 },
1415    { "glVertexAttribs1svNV", 10, -1 },
1416    { "glVertexAttribs2svNV", 10, -1 },
1417    { "glVertexAttribs3svNV", 10, -1 },
1418    { "glVertexAttribs4svNV", 10, -1 },
1419    { "glVertexAttribs1fvNV", 10, -1 },
1420    { "glVertexAttribs2fvNV", 10, -1 },
1421    { "glVertexAttribs3fvNV", 10, -1 },
1422    { "glVertexAttribs4fvNV", 10, -1 },
1423    { "glVertexAttribs1dvNV", 10, -1 },
1424    { "glVertexAttribs2dvNV", 10, -1 },
1425    { "glVertexAttribs3dvNV", 10, -1 },
1426    { "glVertexAttribs4dvNV", 10, -1 },
1427    { "glVertexAttribs4ubvNV", 10, -1 },
1428    { "glGenFragmentShadersATI", 10, -1 },
1429    { "glBindFragmentShaderATI", 10, -1 },
1430    { "glDeleteFragmentShaderATI", 10, -1 },
1431    { "glBeginFragmentShaderATI", 10, -1 },
1432    { "glEndFragmentShaderATI", 10, -1 },
1433    { "glPassTexCoordATI", 10, -1 },
1434    { "glSampleMapATI", 10, -1 },
1435    { "glColorFragmentOp1ATI", 10, -1 },
1436    { "glColorFragmentOp2ATI", 10, -1 },
1437    { "glColorFragmentOp3ATI", 10, -1 },
1438    { "glAlphaFragmentOp1ATI", 10, -1 },
1439    { "glAlphaFragmentOp2ATI", 10, -1 },
1440    { "glAlphaFragmentOp3ATI", 10, -1 },
1441    { "glSetFragmentShaderConstantATI", 10, -1 },
1442    { "glActiveStencilFaceEXT", 10, -1 },
1443    { "glStencilFuncSeparateATI", 10, -1 },
1444    { "glProgramEnvParameters4fvEXT", 10, -1 },
1445    { "glProgramLocalParameters4fvEXT", 10, -1 },
1446    { "glPrimitiveRestartNV", 10, -1 },
1447 
1448    { NULL, 0, -1 }
1449 };
1450 
1451 const struct function gl_core_functions_possible[] = {
1452    /* GL 3.1 */
1453    { "glTexBuffer", 31, -1 },
1454 
1455    /* GL 3.2 */
1456    { "glFramebufferTexture", 32, -1 },
1457 
1458    /* GL 4.0 */
1459    { "glGetSubroutineUniformLocation", 40, -1 },
1460    { "glGetSubroutineIndex", 40, -1 },
1461    { "glGetActiveSubroutineUniformiv", 40, -1 },
1462    { "glGetActiveSubroutineUniformName", 40, -1 },
1463    { "glGetActiveSubroutineName", 40, -1 },
1464    { "glUniformSubroutinesuiv", 40, -1 },
1465    { "glGetUniformSubroutineuiv", 40, -1 },
1466    { "glGetProgramStageiv", 40, -1 },
1467 
1468    /* GL 4.3 */
1469    { "glIsRenderbuffer", 43, -1 },
1470    { "glBindRenderbuffer", 43, -1 },
1471    { "glDeleteRenderbuffers", 43, -1 },
1472    { "glGenRenderbuffers", 43, -1 },
1473    { "glRenderbufferStorage", 43, -1 },
1474    { "glGetRenderbufferParameteriv", 43, -1 },
1475    { "glIsFramebuffer", 43, -1 },
1476    { "glBindFramebuffer", 43, -1 },
1477    { "glDeleteFramebuffers", 43, -1 },
1478    { "glGenFramebuffers", 43, -1 },
1479    { "glCheckFramebufferStatus", 43, -1 },
1480    { "glFramebufferTexture1D", 43, -1 },
1481    { "glFramebufferTexture2D", 43, -1 },
1482    { "glFramebufferTexture3D", 43, -1 },
1483    { "glFramebufferRenderbuffer", 43, -1 },
1484    { "glGetFramebufferAttachmentParameteriv", 43, -1 },
1485    { "glGenerateMipmap", 43, -1 },
1486    { "glBlitFramebuffer", 43, -1 },
1487    { "glRenderbufferStorageMultisample", 43, -1 },
1488    { "glFramebufferTextureLayer", 43, -1 },
1489    { "glMapBufferRange", 43, -1 },
1490    { "glFlushMappedBufferRange", 43, -1 },
1491    { "glBindVertexArray", 43, -1 },
1492    { "glDeleteVertexArrays", 43, -1 },
1493    { "glGenVertexArrays", 43, -1 },
1494    { "glIsVertexArray", 43, -1 },
1495    { "glGetUniformIndices", 43, -1 },
1496    { "glGetActiveUniformsiv", 43, -1 },
1497    { "glGetActiveUniformName", 43, -1 },
1498    { "glGetUniformBlockIndex", 43, -1 },
1499    { "glGetActiveUniformBlockiv", 43, -1 },
1500    { "glGetActiveUniformBlockName", 43, -1 },
1501    { "glUniformBlockBinding", 43, -1 },
1502    { "glCopyBufferSubData", 43, -1 },
1503    { "glDrawElementsBaseVertex", 43, -1 },
1504    { "glDrawRangeElementsBaseVertex", 43, -1 },
1505    { "glDrawElementsInstancedBaseVertex", 43, -1 },
1506    { "glMultiDrawElementsBaseVertex", 43, -1 },
1507    { "glProvokingVertex", 43, -1 },
1508    { "glFenceSync", 43, -1 },
1509    { "glIsSync", 43, -1 },
1510    { "glDeleteSync", 43, -1 },
1511    { "glClientWaitSync", 43, -1 },
1512    { "glWaitSync", 43, -1 },
1513    { "glGetInteger64v", 43, -1 },
1514    { "glGetSynciv", 43, -1 },
1515    { "glTexImage2DMultisample", 43, -1 },
1516    { "glTexImage3DMultisample", 43, -1 },
1517    { "glGetMultisamplefv", 43, -1 },
1518    { "glSampleMaski", 43, -1 },
1519    { "glBlendEquationiARB", 43, -1 },
1520    { "glBlendEquationSeparateiARB", 43, -1 },
1521    { "glBlendFunciARB", 43, -1 },
1522    { "glBlendFuncSeparateiARB", 43, -1 },
1523    { "glMinSampleShadingARB", 43, -1 },                 // XXX: Add to xml
1524 // { "glNamedStringARB", 43, -1 },                      // XXX: Add to xml
1525 // { "glDeleteNamedStringARB", 43, -1 },                // XXX: Add to xml
1526 // { "glCompileShaderIncludeARB", 43, -1 },             // XXX: Add to xml
1527 // { "glIsNamedStringARB", 43, -1 },                    // XXX: Add to xml
1528 // { "glGetNamedStringARB", 43, -1 },                   // XXX: Add to xml
1529 // { "glGetNamedStringivARB", 43, -1 },                 // XXX: Add to xml
1530    { "glBindFragDataLocationIndexed", 43, -1 },
1531    { "glGetFragDataIndex", 43, -1 },
1532    { "glGenSamplers", 43, -1 },
1533    { "glDeleteSamplers", 43, -1 },
1534    { "glIsSampler", 43, -1 },
1535    { "glBindSampler", 43, -1 },
1536    { "glSamplerParameteri", 43, -1 },
1537    { "glSamplerParameteriv", 43, -1 },
1538    { "glSamplerParameterf", 43, -1 },
1539    { "glSamplerParameterfv", 43, -1 },
1540    { "glSamplerParameterIiv", 43, -1 },
1541    { "glSamplerParameterIuiv", 43, -1 },
1542    { "glGetSamplerParameteriv", 43, -1 },
1543    { "glGetSamplerParameterIiv", 43, -1 },
1544    { "glGetSamplerParameterfv", 43, -1 },
1545    { "glGetSamplerParameterIuiv", 43, -1 },
1546    { "glQueryCounter", 43, -1 },
1547    { "glGetQueryObjecti64v", 43, -1 },
1548    { "glGetQueryObjectui64v", 43, -1 },
1549    { "glVertexP2ui", 43, -1 },
1550    { "glVertexP2uiv", 43, -1 },
1551    { "glVertexP3ui", 43, -1 },
1552    { "glVertexP3uiv", 43, -1 },
1553    { "glVertexP4ui", 43, -1 },
1554    { "glVertexP4uiv", 43, -1 },
1555    { "glTexCoordP1ui", 43, -1 },
1556    { "glTexCoordP1uiv", 43, -1 },
1557    { "glTexCoordP2ui", 43, -1 },
1558    { "glTexCoordP2uiv", 43, -1 },
1559    { "glTexCoordP3ui", 43, -1 },
1560    { "glTexCoordP3uiv", 43, -1 },
1561    { "glTexCoordP4ui", 43, -1 },
1562    { "glTexCoordP4uiv", 43, -1 },
1563    { "glMultiTexCoordP1ui", 43, -1 },
1564    { "glMultiTexCoordP1uiv", 43, -1 },
1565    { "glMultiTexCoordP2ui", 43, -1 },
1566    { "glMultiTexCoordP2uiv", 43, -1 },
1567    { "glMultiTexCoordP3ui", 43, -1 },
1568    { "glMultiTexCoordP3uiv", 43, -1 },
1569    { "glMultiTexCoordP4ui", 43, -1 },
1570    { "glMultiTexCoordP4uiv", 43, -1 },
1571    { "glNormalP3ui", 43, -1 },
1572    { "glNormalP3uiv", 43, -1 },
1573    { "glColorP3ui", 43, -1 },
1574    { "glColorP3uiv", 43, -1 },
1575    { "glColorP4ui", 43, -1 },
1576    { "glColorP4uiv", 43, -1 },
1577    { "glVertexAttribP1ui", 43, -1 },
1578    { "glVertexAttribP1uiv", 43, -1 },
1579    { "glVertexAttribP2ui", 43, -1 },
1580    { "glVertexAttribP2uiv", 43, -1 },
1581    { "glVertexAttribP3ui", 43, -1 },
1582    { "glVertexAttribP3uiv", 43, -1 },
1583    { "glVertexAttribP4ui", 43, -1 },
1584    { "glVertexAttribP4uiv", 43, -1 },
1585    { "glDrawArraysIndirect", 43, -1 },
1586    { "glDrawElementsIndirect", 43, -1 },
1587 
1588    { "glUniform1d", 40, -1 },
1589    { "glUniform2d", 40, -1 },
1590    { "glUniform3d", 40, -1 },
1591    { "glUniform4d", 40, -1 },
1592    { "glUniform1dv", 40, -1 },
1593    { "glUniform2dv", 40, -1 },
1594    { "glUniform3dv", 40, -1 },
1595    { "glUniform4dv", 40, -1 },
1596    { "glUniformMatrix2dv", 40, -1 },
1597    { "glUniformMatrix3dv", 40, -1 },
1598    { "glUniformMatrix4dv", 40, -1 },
1599    { "glUniformMatrix2x3dv", 40, -1 },
1600    { "glUniformMatrix2x4dv", 40, -1 },
1601    { "glUniformMatrix3x2dv", 40, -1 },
1602    { "glUniformMatrix3x4dv", 40, -1 },
1603    { "glUniformMatrix4x2dv", 40, -1 },
1604    { "glUniformMatrix4x3dv", 40, -1 },
1605    { "glGetUniformdv", 43, -1 },
1606 
1607    { "glBindTransformFeedback", 43, -1 },
1608    { "glDeleteTransformFeedbacks", 43, -1 },
1609    { "glGenTransformFeedbacks", 43, -1 },
1610    { "glIsTransformFeedback", 43, -1 },
1611    { "glPauseTransformFeedback", 43, -1 },
1612    { "glResumeTransformFeedback", 43, -1 },
1613    { "glDrawTransformFeedback", 43, -1 },
1614    { "glDrawTransformFeedbackStream", 43, -1 },
1615    { "glBeginQueryIndexed", 43, -1 },
1616    { "glEndQueryIndexed", 43, -1 },
1617    { "glGetQueryIndexediv", 43, -1 },
1618    { "glReleaseShaderCompiler", 43, -1 },
1619    { "glShaderBinary", 43, -1 },
1620    { "glGetShaderPrecisionFormat", 43, -1 },
1621    { "glDepthRangef", 43, -1 },
1622    { "glClearDepthf", 43, -1 },
1623    { "glGetProgramBinary", 43, -1 },
1624    { "glProgramBinary", 43, -1 },
1625    { "glProgramParameteri", 43, -1 },
1626    { "glUseProgramStages", 43, -1 },
1627    { "glActiveShaderProgram", 43, -1 },
1628    { "glCreateShaderProgramv", 43, -1 },
1629    { "glBindProgramPipeline", 43, -1 },
1630    { "glDeleteProgramPipelines", 43, -1 },
1631    { "glGenProgramPipelines", 43, -1 },
1632    { "glIsProgramPipeline", 43, -1 },
1633    { "glGetProgramPipelineiv", 43, -1 },
1634    { "glProgramUniform1i", 43, -1 },
1635    { "glProgramUniform1iv", 43, -1 },
1636    { "glProgramUniform1f", 43, -1 },
1637    { "glProgramUniform1fv", 43, -1 },
1638    { "glProgramUniform1d", 40, -1 },
1639    { "glProgramUniform1dv", 40, -1 },
1640    { "glProgramUniform1ui", 43, -1 },
1641    { "glProgramUniform1uiv", 43, -1 },
1642    { "glProgramUniform2i", 43, -1 },
1643    { "glProgramUniform2iv", 43, -1 },
1644    { "glProgramUniform2f", 43, -1 },
1645    { "glProgramUniform2fv", 43, -1 },
1646    { "glProgramUniform2d", 40, -1 },
1647    { "glProgramUniform2dv", 40, -1 },
1648    { "glProgramUniform2ui", 43, -1 },
1649    { "glProgramUniform2uiv", 43, -1 },
1650    { "glProgramUniform3i", 43, -1 },
1651    { "glProgramUniform3iv", 43, -1 },
1652    { "glProgramUniform3f", 43, -1 },
1653    { "glProgramUniform3fv", 43, -1 },
1654    { "glProgramUniform3d", 40, -1 },
1655    { "glProgramUniform3dv", 40, -1 },
1656    { "glProgramUniform3ui", 43, -1 },
1657    { "glProgramUniform3uiv", 43, -1 },
1658    { "glProgramUniform4i", 43, -1 },
1659    { "glProgramUniform4iv", 43, -1 },
1660    { "glProgramUniform4f", 43, -1 },
1661    { "glProgramUniform4fv", 43, -1 },
1662    { "glProgramUniform4d", 40, -1 },
1663    { "glProgramUniform4dv", 40, -1 },
1664    { "glProgramUniform4ui", 43, -1 },
1665    { "glProgramUniform4uiv", 43, -1 },
1666    { "glProgramUniformMatrix2fv", 43, -1 },
1667    { "glProgramUniformMatrix3fv", 43, -1 },
1668    { "glProgramUniformMatrix4fv", 43, -1 },
1669    { "glProgramUniformMatrix2dv", 40, -1 },
1670    { "glProgramUniformMatrix3dv", 40, -1 },
1671    { "glProgramUniformMatrix4dv", 40, -1 },
1672    { "glProgramUniformMatrix2x3fv", 43, -1 },
1673    { "glProgramUniformMatrix3x2fv", 43, -1 },
1674    { "glProgramUniformMatrix2x4fv", 43, -1 },
1675    { "glProgramUniformMatrix4x2fv", 43, -1 },
1676    { "glProgramUniformMatrix3x4fv", 43, -1 },
1677    { "glProgramUniformMatrix4x3fv", 43, -1 },
1678    { "glProgramUniformMatrix2x3dv", 40, -1 },
1679    { "glProgramUniformMatrix3x2dv", 40, -1 },
1680    { "glProgramUniformMatrix2x4dv", 40, -1 },
1681    { "glProgramUniformMatrix4x2dv", 40, -1 },
1682    { "glProgramUniformMatrix3x4dv", 40, -1 },
1683    { "glProgramUniformMatrix4x3dv", 40, -1 },
1684    { "glValidateProgramPipeline", 43, -1 },
1685    { "glGetProgramPipelineInfoLog", 43, -1 },
1686 
1687    { "glVertexAttribL1d", 41, -1 },
1688    { "glVertexAttribL2d", 41, -1 },
1689    { "glVertexAttribL3d", 41, -1 },
1690    { "glVertexAttribL4d", 41, -1 },
1691    { "glVertexAttribL1dv", 41, -1 },
1692    { "glVertexAttribL2dv", 41, -1 },
1693    { "glVertexAttribL3dv", 41, -1 },
1694    { "glVertexAttribL4dv", 41, -1 },
1695    { "glVertexAttribLPointer", 41, -1 },
1696    { "glGetVertexAttribLdv", 41, -1 },
1697    { "glViewportArrayv", 43, -1 },
1698    { "glViewportIndexedf", 43, -1 },
1699    { "glViewportIndexedfv", 43, -1 },
1700    { "glScissorArrayv", 43, -1 },
1701    { "glScissorIndexed", 43, -1 },
1702    { "glScissorIndexedv", 43, -1 },
1703    { "glDepthRangeArrayv", 43, -1 },
1704    { "glDepthRangeIndexed", 43, -1 },
1705 
1706 // { "glCreateSyncFromCLeventARB", 43, -1 },            // XXX: Add to xml
1707 
1708    { "glDrawArraysInstancedBaseInstance", 43, -1 },
1709    { "glDrawElementsInstancedBaseInstance", 43, -1 },
1710    { "glDrawElementsInstancedBaseVertexBaseInstance", 43, -1 },
1711    { "glDrawTransformFeedbackInstanced", 43, -1 },
1712    { "glDrawTransformFeedbackStreamInstanced", 43, -1 },
1713    { "glGetActiveAtomicCounterBufferiv", 43, -1 },
1714    { "glBindImageTexture", 43, -1 },
1715    { "glMemoryBarrier", 43, -1 },
1716    { "glTexStorage1D", 43, -1 },
1717    { "glTexStorage2D", 43, -1 },
1718    { "glTexStorage3D", 43, -1 },
1719    { "glTextureStorage1DEXT", 43, -1 },
1720    { "glTextureStorage2DEXT", 43, -1 },
1721    { "glTextureStorage3DEXT", 43, -1 },
1722    { "glClearBufferData", 43, -1 },
1723    { "glClearBufferSubData", 43, -1 },
1724 // { "glClearNamedBufferDataEXT", 43, -1 },             // XXX: Add to xml
1725 // { "glClearNamedBufferSubDataEXT", 43, -1 },          // XXX: Add to xml
1726    { "glCopyImageSubData", 43, -1 },
1727    { "glTextureView", 43, -1 },
1728    { "glBindVertexBuffer", 43, -1 },
1729    { "glVertexAttribFormat", 43, -1 },
1730    { "glVertexAttribIFormat", 43, -1 },
1731    { "glVertexAttribBinding", 43, -1 },
1732    { "glVertexBindingDivisor", 43, -1 },
1733 // { "glVertexArrayBindVertexBufferEXT", 43, -1 },      // XXX: Add to xml
1734 // { "glVertexArrayVertexAttribFormatEXT", 43, -1 },    // XXX: Add to xml
1735 // { "glVertexArrayVertexAttribIFormatEXT", 43, -1 },   // XXX: Add to xml
1736 // { "glVertexArrayVertexAttribLFormatEXT", 43, -1 },   // XXX: Add to xml
1737 // { "glVertexArrayVertexAttribBindingEXT", 43, -1 },   // XXX: Add to xml
1738 // { "glVertexArrayVertexBindingDivisorEXT", 43, -1 },  // XXX: Add to xml
1739 // { "glFramebufferParameteri", 43, -1 },               // XXX: Add to xml
1740 // { "glGetFramebufferParameteriv", 43, -1 },           // XXX: Add to xml
1741 // { "glNamedFramebufferParameteriEXT", 43, -1 },       // XXX: Add to xml
1742 // { "glGetNamedFramebufferParameterivEXT", 43, -1 },   // XXX: Add to xml
1743 // { "glGetInternalformati64v", 43, -1 },               // XXX: Add to xml
1744    { "glInvalidateTexSubImage", 43, -1 },
1745    { "glInvalidateTexImage", 43, -1 },
1746    { "glInvalidateBufferSubData", 43, -1 },
1747    { "glInvalidateBufferData", 43, -1 },
1748    { "glInvalidateFramebuffer", 43, -1 },
1749    { "glInvalidateSubFramebuffer", 43, -1 },
1750    { "glMultiDrawArraysIndirect", 43, -1 },
1751    { "glMultiDrawElementsIndirect", 43, -1 },
1752    { "glGetProgramInterfaceiv", 43, -1 },
1753    { "glGetProgramResourceIndex", 43, -1 },
1754    { "glGetProgramResourceName", 43, -1 },
1755    { "glGetProgramResourceiv", 43, -1 },
1756    { "glGetProgramResourceLocation", 43, -1 },
1757    { "glGetProgramResourceLocationIndex", 43, -1 },
1758 // { "glShaderStorageBlockBinding", 43, -1 },           // XXX: Add to xml
1759    { "glTexBufferRange", 43, -1 },
1760 // { "glTextureBufferRangeEXT", 43, -1 },               // XXX: Add to xml
1761    { "glTexStorage2DMultisample", 43, -1 },
1762    { "glTexStorage3DMultisample", 43, -1 },
1763 // { "glTextureStorage2DMultisampleEXT", 43, -1 },      // XXX: Add to xml
1764 // { "glTextureStorage3DMultisampleEXT", 43, -1 },      // XXX: Add to xml
1765 
1766 /* GL 4.5 */
1767    { "glMemoryBarrierByRegion", 45, -1 },
1768 
1769    /* GL_ARB_direct_state_access */
1770    { "glCreateTransformFeedbacks", 45, -1 },
1771    { "glTransformFeedbackBufferBase", 45, -1 },
1772    { "glTransformFeedbackBufferRange", 45, -1 },
1773    { "glGetTransformFeedbackiv", 45, -1 },
1774    { "glGetTransformFeedbacki_v", 45, -1 },
1775    { "glGetTransformFeedbacki64_v", 45, -1 },
1776    { "glCreateBuffers", 45, -1 },
1777    { "glNamedBufferStorage", 45, -1 },
1778    { "glNamedBufferData", 45, -1 },
1779    { "glNamedBufferSubData", 45, -1 },
1780    { "glCopyNamedBufferSubData", 45, -1 },
1781    { "glClearNamedBufferData", 45, -1 },
1782    { "glClearNamedBufferSubData", 45, -1 },
1783    { "glMapNamedBuffer", 45, -1 },
1784    { "glMapNamedBufferRange", 45, -1 },
1785    { "glUnmapNamedBuffer", 45, -1 },
1786    { "glFlushMappedNamedBufferRange", 45, -1 },
1787    { "glGetNamedBufferParameteriv", 45, -1 },
1788    { "glGetNamedBufferParameteri64v", 45, -1 },
1789    { "glGetNamedBufferPointerv", 45, -1 },
1790    { "glGetNamedBufferSubData", 45, -1 },
1791    { "glCreateFramebuffers", 45, -1 },
1792    { "glNamedFramebufferRenderbuffer", 45, -1 },
1793    { "glNamedFramebufferParameteri", 45, -1 },
1794    { "glNamedFramebufferTexture", 45, -1 },
1795    { "glNamedFramebufferTextureLayer", 45, -1 },
1796    { "glNamedFramebufferDrawBuffer", 45, -1 },
1797    { "glNamedFramebufferDrawBuffers", 45, -1 },
1798    { "glNamedFramebufferReadBuffer", 45, -1 },
1799    { "glInvalidateNamedFramebufferSubData", 45, -1 },
1800    { "glInvalidateNamedFramebufferData", 45, -1 },
1801    { "glClearNamedFramebufferiv", 45, -1 },
1802    { "glClearNamedFramebufferuiv", 45, -1 },
1803    { "glClearNamedFramebufferfv", 45, -1 },
1804    { "glClearNamedFramebufferfi", 45, -1 },
1805    { "glBlitNamedFramebuffer", 45, -1 },
1806    { "glCheckNamedFramebufferStatus", 45, -1 },
1807    { "glGetNamedFramebufferParameteriv", 45, -1 },
1808    { "glGetNamedFramebufferAttachmentParameteriv", 45, -1 },
1809    { "glCreateRenderbuffers", 45, -1 },
1810    { "glNamedRenderbufferStorage", 45, -1 },
1811    { "glNamedRenderbufferStorageMultisample", 45, -1 },
1812    { "glGetNamedRenderbufferParameteriv", 45, -1 },
1813    { "glCreateTextures", 45, -1 },
1814    { "glTextureStorage1D", 45, -1 },
1815    { "glTextureStorage2D", 45, -1 },
1816    { "glTextureStorage3D", 45, -1 },
1817    { "glTextureSubImage1D", 45, -1 },
1818    { "glTextureSubImage2D", 45, -1 },
1819    { "glTextureSubImage3D", 45, -1 },
1820    { "glBindTextureUnit", 45, -1 },
1821    { "glTextureParameterf", 45, -1 },
1822    { "glTextureParameterfv", 45, -1 },
1823    { "glTextureParameteri", 45, -1 },
1824    { "glTextureParameterIiv", 45, -1 },
1825    { "glTextureParameterIuiv", 45, -1 },
1826    { "glTextureParameteriv", 45, -1 },
1827    { "glGetTextureLevelParameterfv", 45, -1 },
1828    { "glGetTextureLevelParameteriv", 45, -1 },
1829    { "glGetTextureParameterfv", 45, -1 },
1830    { "glGetTextureParameterIiv", 45, -1 },
1831    { "glGetTextureParameterIuiv", 45, -1 },
1832    { "glGetTextureParameteriv", 45, -1 },
1833    { "glCopyTextureSubImage1D", 45, -1 },
1834    { "glCopyTextureSubImage2D", 45, -1 },
1835    { "glCopyTextureSubImage3D", 45, -1 },
1836    { "glGetTextureImage", 45, -1 },
1837    { "glGetCompressedTextureImage", 45, -1 },
1838    { "glCompressedTextureSubImage1D", 45, -1 },
1839    { "glCompressedTextureSubImage2D", 45, -1 },
1840    { "glCompressedTextureSubImage3D", 45, -1 },
1841    { "glGenerateTextureMipmap", 45, -1 },
1842    { "glTextureStorage2DMultisample", 45, -1 },
1843    { "glTextureStorage3DMultisample", 45, -1 },
1844    { "glTextureBuffer", 45, -1 },
1845    { "glTextureBufferRange", 45, -1 },
1846    { "glCreateVertexArrays", 45, -1 },
1847    { "glDisableVertexArrayAttrib", 45, -1 },
1848    { "glEnableVertexArrayAttrib", 45, -1 },
1849    { "glVertexArrayElementBuffer", 45, -1 },
1850    { "glVertexArrayVertexBuffer", 45, -1 },
1851    { "glVertexArrayVertexBuffers", 45, -1 },
1852    { "glVertexArrayAttribFormat", 45, -1 },
1853    { "glVertexArrayAttribIFormat", 45, -1 },
1854    { "glVertexArrayAttribLFormat", 45, -1 },
1855    { "glVertexArrayAttribBinding", 45, -1 },
1856    { "glVertexArrayBindingDivisor", 45, -1 },
1857    { "glGetVertexArrayiv", 45, -1 },
1858    { "glGetVertexArrayIndexediv", 45, -1 },
1859    { "glGetVertexArrayIndexed64iv", 45, -1 },
1860    { "glCreateSamplers", 45, -1 },
1861    { "glCreateProgramPipelines", 45, -1 },
1862    { "glCreateQueries", 45, -1 },
1863    { "glGetQueryBufferObjectiv", 45, -1 },
1864    { "glGetQueryBufferObjectuiv", 45, -1 },
1865    { "glGetQueryBufferObjecti64v", 45, -1 },
1866    { "glGetQueryBufferObjectui64v", 45, -1 },
1867 
1868    /* GL_ARB_indirect_parameters */
1869    { "glMultiDrawArraysIndirectCountARB", 31, -1 },
1870    { "glMultiDrawElementsIndirectCountARB", 31, -1 },
1871 
1872    /* GL_ARB_ES3_2_compatibility */
1873    { "glPrimitiveBoundingBoxARB", 45, -1 },
1874 
1875    { NULL, 0, -1 }
1876 };
1877 
1878 const struct function gles11_functions_possible[] = {
1879    { "glActiveTexture", 11, _gloffset_ActiveTexture },
1880    { "glAlphaFunc", 11, _gloffset_AlphaFunc },
1881    { "glAlphaFuncx", 11, -1 },
1882    { "glBindBuffer", 11, -1 },
1883    { "glBindFramebufferOES", 11, -1 },
1884    { "glBindRenderbufferOES", 11, -1 },
1885    { "glBindTexture", 11, _gloffset_BindTexture },
1886    { "glBlendEquationOES", 11, _gloffset_BlendEquation },
1887    { "glBlendEquationSeparateOES", 11, -1 },
1888    { "glBlendFunc", 11, _gloffset_BlendFunc },
1889    { "glBlendFuncSeparateOES", 11, -1 },
1890    { "glBufferData", 11, -1 },
1891    { "glBufferSubData", 11, -1 },
1892    { "glCheckFramebufferStatusOES", 11, -1 },
1893    { "glClear", 11, _gloffset_Clear },
1894    { "glClearColor", 11, _gloffset_ClearColor },
1895    { "glClearColorx", 11, -1 },
1896    { "glClearDepthf", 11, -1 },
1897    { "glClearDepthx", 11, -1 },
1898    { "glClearStencil", 11, _gloffset_ClearStencil },
1899    { "glClientActiveTexture", 11, _gloffset_ClientActiveTexture },
1900    { "glClipPlanef", 11, -1 },
1901    { "glClipPlanex", 11, -1 },
1902    { "glColor4f", 11, _gloffset_Color4f },
1903    { "glColor4ub", 11, _gloffset_Color4ub },
1904    { "glColor4x", 11, -1 },
1905    { "glColorMask", 11, _gloffset_ColorMask },
1906    { "glColorPointer", 11, _gloffset_ColorPointer },
1907    { "glCompressedTexImage2D", 11, -1 },
1908    { "glCompressedTexSubImage2D", 11, -1 },
1909    { "glCopyTexImage2D", 11, _gloffset_CopyTexImage2D },
1910    { "glCopyTexSubImage2D", 11, _gloffset_CopyTexSubImage2D },
1911    { "glCullFace", 11, _gloffset_CullFace },
1912    { "glDeleteBuffers", 11, -1 },
1913    { "glDeleteFramebuffersOES", 11, -1 },
1914    { "glDeleteRenderbuffersOES", 11, -1 },
1915    { "glDeleteTextures", 11, _gloffset_DeleteTextures },
1916    { "glDepthFunc", 11, _gloffset_DepthFunc },
1917    { "glDepthMask", 11, _gloffset_DepthMask },
1918    { "glDepthRangef", 11, -1 },
1919    { "glDepthRangex", 11, -1 },
1920    { "glDisable", 11, _gloffset_Disable },
1921    { "glDiscardFramebufferEXT", 11, -1 },
1922    { "glDisableClientState", 11, _gloffset_DisableClientState },
1923    { "glDrawArrays", 11, _gloffset_DrawArrays },
1924    { "glDrawElements", 11, _gloffset_DrawElements },
1925    { "glDrawTexfOES", 11, -1 },
1926    { "glDrawTexfvOES", 11, -1 },
1927    { "glDrawTexiOES", 11, -1 },
1928    { "glDrawTexivOES", 11, -1 },
1929    { "glDrawTexsOES", 11, -1 },
1930    { "glDrawTexsvOES", 11, -1 },
1931    { "glDrawTexxOES", 11, -1 },
1932    { "glDrawTexxvOES", 11, -1 },
1933    { "glEGLImageTargetRenderbufferStorageOES", 11, -1 },
1934    { "glEGLImageTargetTexture2DOES", 11, -1 },
1935    { "glEnable", 11, _gloffset_Enable },
1936    { "glEnableClientState", 11, _gloffset_EnableClientState },
1937    { "glFinish", 11, _gloffset_Finish },
1938    { "glFlush", 11, _gloffset_Flush },
1939    { "glFlushMappedBufferRangeEXT", 11, -1 },
1940    { "glFogf", 11, _gloffset_Fogf },
1941    { "glFogfv", 11, _gloffset_Fogfv },
1942    { "glFogx", 11, -1 },
1943    { "glFogxv", 11, -1 },
1944    { "glFramebufferRenderbufferOES", 11, -1 },
1945    { "glFramebufferTexture2DOES", 11, -1 },
1946    { "glFrontFace", 11, _gloffset_FrontFace },
1947    { "glFrustumf", 11, -1 },
1948    { "glFrustumx", 11, -1 },
1949    { "glGenBuffers", 11, -1 },
1950    { "glGenFramebuffersOES", 11, -1 },
1951    { "glGenRenderbuffersOES", 11, -1 },
1952    { "glGenTextures", 11, _gloffset_GenTextures },
1953    { "glGenerateMipmapOES", 11, -1 },
1954    { "glGetBooleanv", 11, _gloffset_GetBooleanv },
1955    { "glGetBufferParameteriv", 11, -1 },
1956    { "glGetBufferPointervOES", 11, -1 },
1957    { "glGetClipPlanef", 11, -1 },
1958    { "glGetClipPlanex", 11, -1 },
1959    { "glGetError", 11, _gloffset_GetError },
1960    { "glGetFixedv", 11, -1 },
1961    { "glGetFloatv", 11, _gloffset_GetFloatv },
1962    { "glGetFramebufferAttachmentParameterivOES", 11, -1 },
1963    { "glGetIntegerv", 11, _gloffset_GetIntegerv },
1964    { "glGetLightfv", 11, _gloffset_GetLightfv },
1965    { "glGetLightxv", 11, -1 },
1966    { "glGetMaterialfv", 11, _gloffset_GetMaterialfv },
1967    { "glGetMaterialxv", 11, -1 },
1968    // We check for the aliased -KHR version in GLES 1.1
1969 // { "glGetPointerv", 11, _gloffset_GetPointerv },
1970    { "glGetRenderbufferParameterivOES", 11, -1 },
1971    { "glGetString", 11, _gloffset_GetString },
1972    { "glGetTexEnvfv", 11, _gloffset_GetTexEnvfv },
1973    { "glGetTexEnviv", 11, _gloffset_GetTexEnviv },
1974    { "glGetTexEnvxv", 11, -1 },
1975    { "glGetTexGenfvOES", 11, _gloffset_GetTexGenfv },
1976    { "glGetTexGenivOES", 11, _gloffset_GetTexGeniv },
1977    { "glGetTexGenxvOES", 11, -1 },
1978    { "glGetTexParameterfv", 11, _gloffset_GetTexParameterfv },
1979    { "glGetTexParameteriv", 11, _gloffset_GetTexParameteriv },
1980    { "glGetTexParameterxv", 11, -1 },
1981    { "glHint", 11, _gloffset_Hint },
1982    { "glIsBuffer", 11, -1 },
1983    { "glIsEnabled", 11, _gloffset_IsEnabled },
1984    { "glIsFramebufferOES", 11, -1 },
1985    { "glIsRenderbufferOES", 11, -1 },
1986    { "glIsTexture", 11, _gloffset_IsTexture },
1987    { "glLightModelf", 11, _gloffset_LightModelf },
1988    { "glLightModelfv", 11, _gloffset_LightModelfv },
1989    { "glLightModelx", 11, -1 },
1990    { "glLightModelxv", 11, -1 },
1991    { "glLightf", 11, _gloffset_Lightf },
1992    { "glLightfv", 11, _gloffset_Lightfv },
1993    { "glLightx", 11, -1 },
1994    { "glLightxv", 11, -1 },
1995    { "glLineWidth", 11, _gloffset_LineWidth },
1996    { "glLineWidthx", 11, -1 },
1997    { "glLoadIdentity", 11, _gloffset_LoadIdentity },
1998    { "glLoadMatrixf", 11, _gloffset_LoadMatrixf },
1999    { "glLoadMatrixx", 11, -1 },
2000    { "glLogicOp", 11, _gloffset_LogicOp },
2001    { "glMapBufferOES", 11, -1 },
2002    { "glMapBufferRangeEXT", 11, -1 },
2003    { "glMaterialf", 11, _gloffset_Materialf },
2004    { "glMaterialfv", 11, _gloffset_Materialfv },
2005    { "glMaterialx", 11, -1 },
2006    { "glMaterialxv", 11, -1 },
2007    { "glMatrixMode", 11, _gloffset_MatrixMode },
2008    { "glMultMatrixf", 11, _gloffset_MultMatrixf },
2009    { "glMultMatrixx", 11, -1 },
2010    { "glMultiDrawArraysEXT", 11, -1 },
2011    { "glMultiDrawElementsEXT", 11, -1 },
2012    { "glMultiTexCoord4f", 11, _gloffset_MultiTexCoord4fARB },
2013    { "glMultiTexCoord4x", 11, -1 },
2014    { "glNormal3f", 11, _gloffset_Normal3f },
2015    { "glNormal3x", 11, -1 },
2016    { "glNormalPointer", 11, _gloffset_NormalPointer },
2017    { "glOrthof", 11, -1 },
2018    { "glOrthox", 11, -1 },
2019    { "glPixelStorei", 11, _gloffset_PixelStorei },
2020    { "glPointParameterf", 11, -1 },
2021    { "glPointParameterfv", 11, -1 },
2022    { "glPointParameterx", 11, -1 },
2023    { "glPointParameterxv", 11, -1 },
2024    { "glPointSize", 11, _gloffset_PointSize },
2025    { "glPointSizePointerOES", 11, -1 },
2026    { "glPointSizex", 11, -1 },
2027    { "glPolygonOffset", 11, _gloffset_PolygonOffset },
2028    { "glPolygonOffsetx", 11, -1 },
2029    { "glPopMatrix", 11, _gloffset_PopMatrix },
2030    { "glPushMatrix", 11, _gloffset_PushMatrix },
2031    { "glQueryMatrixxOES", 11, -1 },
2032    { "glReadPixels", 11, _gloffset_ReadPixels },
2033    { "glRenderbufferStorageOES", 11, -1 },
2034    { "glRotatef", 11, _gloffset_Rotatef },
2035    { "glRotatex", 11, -1 },
2036    { "glSampleCoverage", 11, -1 },
2037    { "glSampleCoveragex", 11, -1 },
2038    { "glScalef", 11, _gloffset_Scalef },
2039    { "glScalex", 11, -1 },
2040    { "glScissor", 11, _gloffset_Scissor },
2041    { "glShadeModel", 11, _gloffset_ShadeModel },
2042    { "glStencilFunc", 11, _gloffset_StencilFunc },
2043    { "glStencilMask", 11, _gloffset_StencilMask },
2044    { "glStencilOp", 11, _gloffset_StencilOp },
2045    { "glTexCoordPointer", 11, _gloffset_TexCoordPointer },
2046    { "glTexEnvf", 11, _gloffset_TexEnvf },
2047    { "glTexEnvfv", 11, _gloffset_TexEnvfv },
2048    { "glTexEnvi", 11, _gloffset_TexEnvi },
2049    { "glTexEnviv", 11, _gloffset_TexEnviv },
2050    { "glTexEnvx", 11, -1 },
2051    { "glTexEnvxv", 11, -1 },
2052    { "glTexGenfOES", 11, _gloffset_TexGenf },
2053    { "glTexGenfvOES", 11, _gloffset_TexGenfv },
2054    { "glTexGeniOES", 11, _gloffset_TexGeni },
2055    { "glTexGenivOES", 11, _gloffset_TexGeniv },
2056    { "glTexGenxOES", 11, -1 },
2057    { "glTexGenxvOES", 11, -1 },
2058    { "glTexImage2D", 11, _gloffset_TexImage2D },
2059    { "glTexParameterf", 11, _gloffset_TexParameterf },
2060    { "glTexParameterfv", 11, _gloffset_TexParameterfv },
2061    { "glTexParameteri", 11, _gloffset_TexParameteri },
2062    { "glTexParameteriv", 11, _gloffset_TexParameteriv },
2063    { "glTexParameterx", 11, -1 },
2064    { "glTexParameterxv", 11, -1 },
2065    { "glTexSubImage2D", 11, _gloffset_TexSubImage2D },
2066    { "glTranslatef", 11, _gloffset_Translatef },
2067    { "glTranslatex", 11, -1 },
2068    { "glUnmapBufferOES", 11, -1 },
2069    { "glVertexPointer", 11, _gloffset_VertexPointer },
2070    { "glViewport", 11, _gloffset_Viewport },
2071 
2072    /* GL_KHR_debug */
2073    { "glPushDebugGroupKHR", 11, -1 },
2074    { "glPopDebugGroupKHR", 11, -1 },
2075    { "glDebugMessageCallbackKHR", 11, -1 },
2076    { "glDebugMessageControlKHR", 11, -1 },
2077    { "glDebugMessageInsertKHR", 11, -1 },
2078    { "glGetDebugMessageLogKHR", 11, -1 },
2079    { "glGetObjectLabelKHR", 11, -1 },
2080    { "glGetObjectPtrLabelKHR", 11, -1 },
2081    { "glGetPointervKHR", 11, _gloffset_GetPointerv },
2082    { "glObjectLabelKHR", 11, -1 },
2083    { "glObjectPtrLabelKHR", 11, -1 },
2084 
2085    /* GL_EXT_polygon_offset_clamp */
2086    { "glPolygonOffsetClampEXT", 11, -1 },
2087 
2088    { NULL, 0, -1 }
2089 };
2090 
2091 const struct function gles2_functions_possible[] = {
2092    { "glActiveTexture", 20, _gloffset_ActiveTexture },
2093    { "glAttachShader", 20, -1 },
2094    { "glBindAttribLocation", 20, -1 },
2095    { "glBindBuffer", 20, -1 },
2096    { "glBindFramebuffer", 20, -1 },
2097    { "glBindRenderbuffer", 20, -1 },
2098    { "glBindTexture", 20, _gloffset_BindTexture },
2099    { "glBindVertexArrayOES", 20, -1 },
2100    { "glBlendColor", 20, _gloffset_BlendColor },
2101    { "glBlendEquation", 20, _gloffset_BlendEquation },
2102    { "glBlendEquationSeparate", 20, -1 },
2103    { "glBlendFunc", 20, _gloffset_BlendFunc },
2104    { "glBlendFuncSeparate", 20, -1 },
2105    { "glBufferData", 20, -1 },
2106    { "glBufferSubData", 20, -1 },
2107    { "glCheckFramebufferStatus", 20, -1 },
2108    { "glClear", 20, _gloffset_Clear },
2109    { "glClearColor", 20, _gloffset_ClearColor },
2110    { "glClearDepthf", 20, -1 },
2111    { "glClearStencil", 20, _gloffset_ClearStencil },
2112    { "glColorMask", 20, _gloffset_ColorMask },
2113    { "glCompileShader", 20, -1 },
2114    { "glCompressedTexImage2D", 20, -1 },
2115    { "glCompressedTexImage3DOES", 20, -1 },
2116    { "glCompressedTexSubImage2D", 20, -1 },
2117    { "glCompressedTexSubImage3DOES", 20, -1 },
2118    { "glCopyTexImage2D", 20, _gloffset_CopyTexImage2D },
2119    { "glCopyTexSubImage2D", 20, _gloffset_CopyTexSubImage2D },
2120    { "glCopyTexSubImage3DOES", 20, _gloffset_CopyTexSubImage3D },
2121    { "glCreateProgram", 20, -1 },
2122    { "glCreateShader", 20, -1 },
2123    { "glCullFace", 20, _gloffset_CullFace },
2124    { "glDeleteBuffers", 20, -1 },
2125    { "glDeleteFramebuffers", 20, -1 },
2126    { "glDeleteProgram", 20, -1 },
2127    { "glDeleteRenderbuffers", 20, -1 },
2128    { "glDeleteShader", 20, -1 },
2129    { "glDeleteTextures", 20, _gloffset_DeleteTextures },
2130    { "glDeleteVertexArraysOES", 20, -1 },
2131    { "glDepthFunc", 20, _gloffset_DepthFunc },
2132    { "glDepthMask", 20, _gloffset_DepthMask },
2133    { "glDepthRangef", 20, -1 },
2134    { "glDetachShader", 20, -1 },
2135    { "glDisable", 20, _gloffset_Disable },
2136    { "glDiscardFramebufferEXT", 20, -1 },
2137    { "glDisableVertexAttribArray", 20, -1 },
2138    { "glDrawArrays", 20, _gloffset_DrawArrays },
2139    { "glDrawBuffersNV", 20, -1 },
2140    { "glDrawElements", 20, _gloffset_DrawElements },
2141    { "glEGLImageTargetRenderbufferStorageOES", 20, -1 },
2142    { "glEGLImageTargetTexture2DOES", 20, -1 },
2143    { "glEnable", 20, _gloffset_Enable },
2144    { "glEnableVertexAttribArray", 20, -1 },
2145    { "glFinish", 20, _gloffset_Finish },
2146    { "glFlush", 20, _gloffset_Flush },
2147    { "glFlushMappedBufferRangeEXT", 20, -1 },
2148    { "glFramebufferRenderbuffer", 20, -1 },
2149    { "glFramebufferTexture2D", 20, -1 },
2150    { "glFramebufferTexture3DOES", 20, -1 },
2151    { "glFrontFace", 20, _gloffset_FrontFace },
2152    { "glGenBuffers", 20, -1 },
2153    { "glGenFramebuffers", 20, -1 },
2154    { "glGenRenderbuffers", 20, -1 },
2155    { "glGenTextures", 20, _gloffset_GenTextures },
2156    { "glGenVertexArraysOES", 20, -1 },
2157    { "glGenerateMipmap", 20, -1 },
2158    { "glGetActiveAttrib", 20, -1 },
2159    { "glGetActiveUniform", 20, -1 },
2160    { "glGetAttachedShaders", 20, -1 },
2161    { "glGetAttribLocation", 20, -1 },
2162    { "glGetBooleanv", 20, _gloffset_GetBooleanv },
2163    { "glGetBufferParameteriv", 20, -1 },
2164    { "glGetBufferPointervOES", 20, -1 },
2165    { "glGetError", 20, _gloffset_GetError },
2166    { "glGetFloatv", 20, _gloffset_GetFloatv },
2167    { "glGetFramebufferAttachmentParameteriv", 20, -1 },
2168    { "glGetIntegerv", 20, _gloffset_GetIntegerv },
2169    { "glGetProgramInfoLog", 20, -1 },
2170    { "glGetProgramiv", 20, -1 },
2171    { "glGetRenderbufferParameteriv", 20, -1 },
2172    { "glGetShaderInfoLog", 20, -1 },
2173    { "glGetShaderPrecisionFormat", 20, -1 },
2174    { "glGetShaderSource", 20, -1 },
2175    { "glGetShaderiv", 20, -1 },
2176    { "glGetString", 20, _gloffset_GetString },
2177    { "glGetTexParameterfv", 20, _gloffset_GetTexParameterfv },
2178    { "glGetTexParameteriv", 20, _gloffset_GetTexParameteriv },
2179    { "glGetUniformLocation", 20, -1 },
2180    { "glGetUniformfv", 20, -1 },
2181    { "glGetUniformiv", 20, -1 },
2182    { "glGetVertexAttribPointerv", 20, -1 },
2183    { "glGetVertexAttribfv", 20, -1 },
2184    { "glGetVertexAttribiv", 20, -1 },
2185    { "glHint", 20, _gloffset_Hint },
2186    { "glIsBuffer", 20, -1 },
2187    { "glIsEnabled", 20, _gloffset_IsEnabled },
2188    { "glIsFramebuffer", 20, -1 },
2189    { "glIsProgram", 20, -1 },
2190    { "glIsRenderbuffer", 20, -1 },
2191    { "glIsShader", 20, -1 },
2192    { "glIsTexture", 20, _gloffset_IsTexture },
2193    { "glIsVertexArrayOES", 20, -1 },
2194    { "glLineWidth", 20, _gloffset_LineWidth },
2195    { "glLinkProgram", 20, -1 },
2196    { "glMapBufferOES", 20, -1 },
2197    { "glMapBufferRangeEXT", 20, -1 },
2198    { "glMultiDrawArraysEXT", 20, -1 },
2199    { "glMultiDrawElementsEXT", 20, -1 },
2200    { "glPixelStorei", 20, _gloffset_PixelStorei },
2201    { "glPolygonOffset", 20, _gloffset_PolygonOffset },
2202    { "glReadBufferNV", 20, _gloffset_ReadBuffer },
2203    { "glReadPixels", 20, _gloffset_ReadPixels },
2204    { "glReleaseShaderCompiler", 20, -1 },
2205    { "glRenderbufferStorage", 20, -1 },
2206    { "glSampleCoverage", 20, -1 },
2207    { "glScissor", 20, _gloffset_Scissor },
2208    { "glShaderBinary", 20, -1 },
2209    { "glShaderSource", 20, -1 },
2210    { "glStencilFunc", 20, _gloffset_StencilFunc },
2211    { "glStencilFuncSeparate", 20, -1 },
2212    { "glStencilMask", 20, _gloffset_StencilMask },
2213    { "glStencilMaskSeparate", 20, -1 },
2214    { "glStencilOp", 20, _gloffset_StencilOp },
2215    { "glStencilOpSeparate", 20, -1 },
2216    { "glTexImage2D", 20, _gloffset_TexImage2D },
2217    { "glTexImage3DOES", 20, _gloffset_TexImage3D },
2218    { "glTexParameterf", 20, _gloffset_TexParameterf },
2219    { "glTexParameterfv", 20, _gloffset_TexParameterfv },
2220    { "glTexParameteri", 20, _gloffset_TexParameteri },
2221    { "glTexParameteriv", 20, _gloffset_TexParameteriv },
2222    { "glTexSubImage2D", 20, _gloffset_TexSubImage2D },
2223    { "glTexSubImage3DOES", 20, _gloffset_TexSubImage3D },
2224    { "glUniform1f", 20, -1 },
2225    { "glUniform1fv", 20, -1 },
2226    { "glUniform1i", 20, -1 },
2227    { "glUniform1iv", 20, -1 },
2228    { "glUniform2f", 20, -1 },
2229    { "glUniform2fv", 20, -1 },
2230    { "glUniform2i", 20, -1 },
2231    { "glUniform2iv", 20, -1 },
2232    { "glUniform3f", 20, -1 },
2233    { "glUniform3fv", 20, -1 },
2234    { "glUniform3i", 20, -1 },
2235    { "glUniform3iv", 20, -1 },
2236    { "glUniform4f", 20, -1 },
2237    { "glUniform4fv", 20, -1 },
2238    { "glUniform4i", 20, -1 },
2239    { "glUniform4iv", 20, -1 },
2240    { "glUniformMatrix2fv", 20, -1 },
2241    { "glUniformMatrix3fv", 20, -1 },
2242    { "glUniformMatrix4fv", 20, -1 },
2243    { "glUnmapBufferOES", 20, -1 },
2244    { "glUseProgram", 20, -1 },
2245    { "glValidateProgram", 20, -1 },
2246    { "glVertexAttrib1f", 20, -1 },
2247    { "glVertexAttrib1fv", 20, -1 },
2248    { "glVertexAttrib2f", 20, -1 },
2249    { "glVertexAttrib2fv", 20, -1 },
2250    { "glVertexAttrib3f", 20, -1 },
2251    { "glVertexAttrib3fv", 20, -1 },
2252    { "glVertexAttrib4f", 20, -1 },
2253    { "glVertexAttrib4fv", 20, -1 },
2254    { "glVertexAttribPointer", 20, -1 },
2255    { "glViewport", 20, _gloffset_Viewport },
2256 
2257    /* GL_OES_get_program_binary - Also part of OpenGL ES 3.0. */
2258    { "glGetProgramBinaryOES", 20, -1 },
2259    { "glProgramBinaryOES", 20, -1 },
2260 
2261    /* GL_EXT_separate_shader_objects - Also part of OpenGL ES 3.1. */
2262    { "glProgramParameteriEXT", 20, -1 },
2263    { "glUseProgramStagesEXT", 20, -1 },
2264    { "glActiveShaderProgramEXT", 20, -1 },
2265    { "glCreateShaderProgramvEXT", 20, -1 },
2266    { "glBindProgramPipelineEXT", 20, -1 },
2267    { "glDeleteProgramPipelinesEXT", 20, -1 },
2268    { "glGenProgramPipelinesEXT", 20, -1 },
2269    { "glIsProgramPipelineEXT", 20, -1 },
2270    { "glGetProgramPipelineivEXT", 20, -1 },
2271    { "glProgramUniform1iEXT", 20, -1 },
2272    { "glProgramUniform1ivEXT", 20, -1 },
2273    { "glProgramUniform1fEXT", 20, -1 },
2274    { "glProgramUniform1fvEXT", 20, -1 },
2275    { "glProgramUniform2iEXT", 20, -1 },
2276    { "glProgramUniform2ivEXT", 20, -1 },
2277    { "glProgramUniform2fEXT", 20, -1 },
2278    { "glProgramUniform2fvEXT", 20, -1 },
2279    { "glProgramUniform3iEXT", 20, -1 },
2280    { "glProgramUniform3ivEXT", 20, -1 },
2281    { "glProgramUniform3fEXT", 20, -1 },
2282    { "glProgramUniform3fvEXT", 20, -1 },
2283    { "glProgramUniform4iEXT", 20, -1 },
2284    { "glProgramUniform4ivEXT", 20, -1 },
2285    { "glProgramUniform4fEXT", 20, -1 },
2286    { "glProgramUniform4fvEXT", 20, -1 },
2287    { "glProgramUniformMatrix2fvEXT", 20, -1 },
2288    { "glProgramUniformMatrix3fvEXT", 20, -1 },
2289    { "glProgramUniformMatrix4fvEXT", 20, -1 },
2290    { "glProgramUniformMatrix2x3fvEXT", 20, -1 },
2291    { "glProgramUniformMatrix3x2fvEXT", 20, -1 },
2292    { "glProgramUniformMatrix2x4fvEXT", 20, -1 },
2293    { "glProgramUniformMatrix4x2fvEXT", 20, -1 },
2294    { "glProgramUniformMatrix3x4fvEXT", 20, -1 },
2295    { "glProgramUniformMatrix4x3fvEXT", 20, -1 },
2296    { "glValidateProgramPipelineEXT", 20, -1 },
2297    { "glGetProgramPipelineInfoLogEXT", 20, -1 },
2298 
2299    /* GL_INTEL_performance_query */
2300    { "glGetFirstPerfQueryIdINTEL", 20, -1 },
2301    { "glGetNextPerfQueryIdINTEL", 20, -1 },
2302    { "glGetPerfQueryIdByNameINTEL", 20, -1 },
2303    { "glGetPerfQueryInfoINTEL", 20, -1 },
2304    { "glGetPerfCounterInfoINTEL", 20, -1 },
2305    { "glCreatePerfQueryINTEL", 20, -1 },
2306    { "glDeletePerfQueryINTEL", 20, -1 },
2307    { "glBeginPerfQueryINTEL", 20, -1 },
2308    { "glEndPerfQueryINTEL", 20, -1 },
2309    { "glGetPerfQueryDataINTEL", 20, -1 },
2310 
2311    /* GL_KHR_debug */
2312    { "glPushDebugGroupKHR", 20, -1 },
2313    { "glPopDebugGroupKHR", 20, -1 },
2314    { "glDebugMessageCallbackKHR", 20, -1 },
2315    { "glDebugMessageControlKHR", 20, -1 },
2316    { "glDebugMessageInsertKHR", 20, -1 },
2317    { "glGetDebugMessageLogKHR", 20, -1 },
2318    { "glGetObjectLabelKHR", 20, -1 },
2319    { "glGetObjectPtrLabelKHR", 20, -1 },
2320    { "glGetPointervKHR", 20, -1 },
2321    { "glObjectLabelKHR", 20, -1 },
2322    { "glObjectPtrLabelKHR", 20, -1 },
2323 
2324    /* GL_EXT_polygon_offset_clamp */
2325    { "glPolygonOffsetClampEXT", 11, -1 },
2326 
2327    /* GL_KHR_robustness */
2328    { "glGetGraphicsResetStatusKHR", 20, -1 },
2329    { "glReadnPixelsKHR", 20, -1 },
2330    { "glGetnUniformfvKHR", 20, -1 },
2331    { "glGetnUniformivKHR", 20, -1 },
2332    { "glGetnUniformuivKHR", 20, -1 },
2333 
2334    /* GL_KHR_blend_equation_advanced */
2335    { "glBlendBarrierKHR", 20, -1 },
2336 
2337    { NULL, 0, -1 }
2338 };
2339 
2340 const struct function gles3_functions_possible[] = {
2341    { "glBeginQuery", 30, -1 },
2342    { "glBeginTransformFeedback", 30, -1 },
2343    { "glBindBufferBase", 30, -1 },
2344    { "glBindBufferRange", 30, -1 },
2345    { "glBindSampler", 30, -1 },
2346    { "glBindTransformFeedback", 30, -1 },
2347    // We check for the aliased -OES version in GLES 2
2348    // { "glBindVertexArray", 30, -1 },
2349    { "glBlitFramebuffer", 30, -1 },
2350    { "glClearBufferfi", 30, -1 },
2351    { "glClearBufferfv", 30, -1 },
2352    { "glClearBufferiv", 30, -1 },
2353    { "glClearBufferuiv", 30, -1 },
2354    { "glClientWaitSync", 30, -1 },
2355    // We check for the aliased -OES version in GLES 2
2356    // { "glCompressedTexImage3D", 30, -1 },
2357    // We check for the aliased -OES version in GLES 2
2358    // { "glCompressedTexSubImage3D", 30, -1 },
2359    { "glCopyBufferSubData", 30, -1 },
2360    // We check for the aliased -OES version in GLES 2
2361    // { "glCopyTexSubImage3D", 30, -1 },
2362    { "glDeleteQueries", 30, -1 },
2363    { "glDeleteSamplers", 30, -1 },
2364    { "glDeleteSync", 30, -1 },
2365    { "glDeleteTransformFeedbacks", 30, -1 },
2366    // We check for the aliased -OES version in GLES 2
2367    // { "glDeleteVertexArrays", 30, -1 },
2368    { "glDrawArraysInstanced", 30, -1 },
2369    // We check for the aliased -NV version in GLES 2
2370    // { "glDrawBuffers", 30, -1 },
2371    { "glDrawElementsInstanced", 30, -1 },
2372    { "glDrawRangeElements", 30, -1 },
2373    { "glEndQuery", 30, -1 },
2374    { "glEndTransformFeedback", 30, -1 },
2375    { "glFenceSync", 30, -1 },
2376    // We check for the aliased -EXT version in GLES 2
2377    // { "glFlushMappedBufferRange", 30, -1 },
2378    { "glFramebufferTextureLayer", 30, -1 },
2379    { "glGenQueries", 30, -1 },
2380    { "glGenSamplers", 30, -1 },
2381    { "glGenTransformFeedbacks", 30, -1 },
2382    // We check for the aliased -OES version in GLES 2
2383    // { "glGenVertexArrays", 30, -1 },
2384    { "glGetActiveUniformBlockiv", 30, -1 },
2385    { "glGetActiveUniformBlockName", 30, -1 },
2386    { "glGetActiveUniformsiv", 30, -1 },
2387    { "glGetBufferParameteri64v", 30, -1 },
2388    // We check for the aliased -OES version in GLES 2
2389    // { "glGetBufferPointerv", 30, -1 },
2390    { "glGetFragDataLocation", 30, -1 },
2391    { "glGetInteger64i_v", 30, -1 },
2392    { "glGetInteger64v", 30, -1 },
2393    { "glGetIntegeri_v", 30, -1 },
2394    { "glGetInternalformativ", 30, -1 },
2395    { "glGetInternalformati64v", 30, -1 },
2396    // glGetProgramBinary aliases glGetProgramBinaryOES in GLES 2
2397    { "glGetQueryiv", 30, -1 },
2398    { "glGetQueryObjectuiv", 30, -1 },
2399    { "glGetSamplerParameterfv", 30, -1 },
2400    { "glGetSamplerParameteriv", 30, -1 },
2401    { "glGetStringi", 30, -1 },
2402    { "glGetSynciv", 30, -1 },
2403    { "glGetTransformFeedbackVarying", 30, -1 },
2404    { "glGetUniformBlockIndex", 30, -1 },
2405    { "glGetUniformIndices", 30, -1 },
2406    { "glGetUniformuiv", 30, -1 },
2407    { "glGetVertexAttribIiv", 30, -1 },
2408    { "glGetVertexAttribIuiv", 30, -1 },
2409    { "glInvalidateFramebuffer", 30, -1 },
2410    { "glInvalidateSubFramebuffer", 30, -1 },
2411    { "glIsQuery", 30, -1 },
2412    { "glIsSampler", 30, -1 },
2413    { "glIsSync", 30, -1 },
2414    { "glIsTransformFeedback", 30, -1 },
2415    // We check for the aliased -OES version in GLES 2
2416    // { "glIsVertexArray", 30, -1 },
2417    // We check for the aliased -EXT version in GLES 2
2418    // { "glMapBufferRange", 30, -1 },
2419    { "glPauseTransformFeedback", 30, -1 },
2420    // glProgramBinary aliases glProgramBinaryOES in GLES 2
2421    // glProgramParameteri aliases glProgramParameteriEXT in GLES 2
2422    // We check for the aliased -NV version in GLES 2
2423    // { "glReadBuffer", 30, -1 },
2424    { "glRenderbufferStorageMultisample", 30, -1 },
2425    { "glResumeTransformFeedback", 30, -1 },
2426    { "glSamplerParameterf", 30, -1 },
2427    { "glSamplerParameterfv", 30, -1 },
2428    { "glSamplerParameteri", 30, -1 },
2429    { "glSamplerParameteriv", 30, -1 },
2430    // We check for the aliased -OES version in GLES 2
2431    // { "glTexImage3D", 30, -1 },
2432    { "glTexStorage2D", 30, -1 },
2433    { "glTexStorage3D", 30, -1 },
2434    // We check for the aliased -OES version in GLES 2
2435    // { "glTexSubImage3D", 30, -1 },
2436    { "glTransformFeedbackVaryings", 30, -1 },
2437    { "glUniform1ui", 30, -1 },
2438    { "glUniform1uiv", 30, -1 },
2439    { "glUniform2ui", 30, -1 },
2440    { "glUniform2uiv", 30, -1 },
2441    { "glUniform3ui", 30, -1 },
2442    { "glUniform3uiv", 30, -1 },
2443    { "glUniform4ui", 30, -1 },
2444    { "glUniform4uiv", 30, -1 },
2445    { "glUniformBlockBinding", 30, -1 },
2446    { "glUniformMatrix2x3fv", 30, -1 },
2447    { "glUniformMatrix2x4fv", 30, -1 },
2448    { "glUniformMatrix3x2fv", 30, -1 },
2449    { "glUniformMatrix3x4fv", 30, -1 },
2450    { "glUniformMatrix4x2fv", 30, -1 },
2451    { "glUniformMatrix4x3fv", 30, -1 },
2452    // We check for the aliased -OES version in GLES 2
2453    // { "glUnmapBuffer", 30, -1 },
2454    { "glVertexAttribDivisor", 30, -1 },
2455    { "glVertexAttribI4i", 30, -1 },
2456    { "glVertexAttribI4iv", 30, -1 },
2457    { "glVertexAttribI4ui", 30, -1 },
2458    { "glVertexAttribI4uiv", 30, -1 },
2459    { "glVertexAttribIPointer", 30, -1 },
2460    { "glWaitSync", 30, -1 },
2461 
2462    /* GL_EXT_separate_shader_objects - Also part of OpenGL ES 3.1. */
2463    { "glProgramUniform1uiEXT", 30, -1 },
2464    { "glProgramUniform1uivEXT", 30, -1 },
2465    { "glProgramUniform2uiEXT", 30, -1 },
2466    { "glProgramUniform2uivEXT", 30, -1 },
2467    { "glProgramUniform3uiEXT", 30, -1 },
2468    { "glProgramUniform3uivEXT", 30, -1 },
2469    { "glProgramUniform4uiEXT", 30, -1 },
2470    { "glProgramUniform4uivEXT", 30, -1 },
2471 
2472    /* GL_EXT_blend_func_extended */
2473    { "glBindFragDataLocationIndexedEXT", 30, -1 },
2474    { "glGetFragDataIndexEXT", 30, -1 },
2475    { "glBindFragDataLocationEXT", 30, -1 },
2476 
2477    /* GL_OES_texture_border_clamp */
2478    { "glTexParameterIivOES", 30, -1 },
2479    { "glTexParameterIuivOES", 30, -1 },
2480    { "glGetTexParameterIivOES", 30, -1 },
2481    { "glGetTexParameterIuivOES", 30, -1 },
2482    { "glSamplerParameterIivOES", 30, -1 },
2483    { "glSamplerParameterIuivOES", 30, -1 },
2484    { "glGetSamplerParameterIivOES", 30, -1 },
2485    { "glGetSamplerParameterIuivOES", 30, -1 },
2486 
2487    /* GL_OES_texture_buffer */
2488    { "glTexBufferOES", 31, -1 },
2489    { "glTexBufferRangeOES", 31, -1 },
2490 
2491    /* GL_OES_sample_shading */
2492    { "glMinSampleShadingOES", 30, -1 },
2493 
2494    /* GL_OES_copy_image */
2495    { "glCopyImageSubDataOES", 30, -1 },
2496 
2497    /* GL_OES_draw_buffers_indexed */
2498    { "glBlendFunciOES", 30, -1 },
2499    { "glBlendFuncSeparateiOES", 30, -1 },
2500    { "glBlendEquationiOES", 30, -1 },
2501    { "glBlendEquationSeparateiOES", 30, -1 },
2502    { "glColorMaskiOES", 30, -1 },
2503    { "glEnableiOES", 30, -1 },
2504    { "glDisableiOES", 30, -1 },
2505    { "glIsEnablediOES", 30, -1 },
2506 
2507    /* GL_EXT_base_instance */
2508    { "glDrawArraysInstancedBaseInstanceEXT", 30, -1 },
2509    { "glDrawElementsInstancedBaseInstanceEXT", 30, -1 },
2510    { "glDrawElementsInstancedBaseVertexBaseInstanceEXT", 30, -1 },
2511 
2512    /* GL_EXT_window_rectangles */
2513    { "glWindowRectanglesEXT", 30, -1 },
2514 
2515    { NULL, 0, -1 }
2516 };
2517 
2518 const struct function gles31_functions_possible[] = {
2519    { "glDispatchCompute", 31, -1 },
2520    { "glDispatchComputeIndirect", 31, -1 },
2521    { "glDrawArraysIndirect", 31, -1 },
2522    { "glDrawElementsIndirect", 31, -1 },
2523 
2524    { "glFramebufferParameteri", 31, -1 },
2525    { "glGetFramebufferParameteriv", 31, -1 },
2526 
2527    { "glGetProgramInterfaceiv", 31, -1 },
2528    { "glGetProgramResourceIndex", 31, -1 },
2529    { "glGetProgramResourceName", 31, -1 },
2530    { "glGetProgramResourceiv", 31, -1 },
2531    { "glGetProgramResourceLocation", 31, -1 },
2532 
2533    // We check for the aliased EXT versions in GLES 2
2534    // { "glUseProgramStages", 31, -1 },
2535    // { "glActiveShaderProgram", 31, -1 },
2536    // { "glCreateShaderProgramv", 31, -1 },
2537    // { "glBindProgramPipeline", 31, -1 },
2538    // { "glDeleteProgramPipelines", 31, -1 },
2539    // { "glGenProgramPipelines", 31, -1 },
2540    // { "glIsProgramPipeline", 31, -1 },
2541    // { "glGetProgramPipelineiv", 31, -1 },
2542    // { "glProgramUniform1i", 31, -1 },
2543    // { "glProgramUniform2i", 31, -1 },
2544    // { "glProgramUniform3i", 31, -1 },
2545    // { "glProgramUniform4i", 31, -1 },
2546    // { "glProgramUniform1f", 31, -1 },
2547    // { "glProgramUniform2f", 31, -1 },
2548    // { "glProgramUniform3f", 31, -1 },
2549    // { "glProgramUniform4f", 31, -1 },
2550    // { "glProgramUniform1iv", 31, -1 },
2551    // { "glProgramUniform2iv", 31, -1 },
2552    // { "glProgramUniform3iv", 31, -1 },
2553    // { "glProgramUniform4iv", 31, -1 },
2554    // { "glProgramUniform1fv", 31, -1 },
2555    // { "glProgramUniform2fv", 31, -1 },
2556    // { "glProgramUniform3fv", 31, -1 },
2557    // { "glProgramUniform4fv", 31, -1 },
2558    // { "glProgramUniformMatrix2fv", 31, -1 },
2559    // { "glProgramUniformMatrix3fv", 31, -1 },
2560    // { "glProgramUniformMatrix4fv", 31, -1 },
2561    // { "glProgramUniformMatrix2x3fv", 31, -1 },
2562    // { "glProgramUniformMatrix3x2fv", 31, -1 },
2563    // { "glProgramUniformMatrix2x4fv", 31, -1 },
2564    // { "glProgramUniformMatrix4x2fv", 31, -1 },
2565    // { "glProgramUniformMatrix3x4fv", 31, -1 },
2566    // { "glProgramUniformMatrix4x3fv", 31, -1 },
2567    // { "glValidateProgramPipeline", 31, -1 },
2568    // { "glGetProgramPipelineInfoLog", 31, -1 },
2569 
2570    // We check for the aliased EXT versions in GLES 3
2571    // { "glProgramUniform1ui", 31, -1 },
2572    // { "glProgramUniform2ui", 31, -1 },
2573    // { "glProgramUniform3ui", 31, -1 },
2574    // { "glProgramUniform4ui", 31, -1 },
2575    // { "glProgramUniform1uiv", 31, -1 },
2576    // { "glProgramUniform2uiv", 31, -1 },
2577    // { "glProgramUniform3uiv", 31, -1 },
2578    // { "glProgramUniform4uiv", 31, -1 },
2579 
2580    { "glBindImageTexture", 31, -1 },
2581    { "glGetBooleani_v", 31, -1 },
2582    { "glMemoryBarrier", 31, -1 },
2583 
2584    { "glMemoryBarrierByRegion", 31, -1 },
2585 
2586    { "glTexStorage2DMultisample", 31, -1 },
2587    { "glGetMultisamplefv", 31, -1 },
2588    { "glSampleMaski", 31, -1 },
2589    { "glGetTexLevelParameteriv", 31, -1 },
2590    { "glGetTexLevelParameterfv", 31, -1 },
2591    { "glBindVertexBuffer", 31, -1 },
2592    { "glVertexAttribFormat", 31, -1 },
2593    { "glVertexAttribIFormat", 31, -1 },
2594    { "glVertexAttribBinding", 31, -1 },
2595    { "glVertexBindingDivisor", 31, -1 },
2596 
2597    /* GL_OES_texture_storage_multisample_2d_array */
2598    { "glTexStorage3DMultisampleOES", 31, -1 },
2599 
2600    /* GL_EXT_buffer_storage */
2601    { "glBufferStorageEXT", 31, -1 },
2602 
2603    /* GL_EXT_blend_func_extended */
2604    { "glGetProgramResourceLocationIndexEXT", 31, -1 },
2605 
2606    /* GL_OES_geometry_shader */
2607    { "glFramebufferTextureOES", 31, -1},
2608 
2609    /* GL_EXT_geometry_shader */
2610    // We check for the aliased OES version above
2611    // { "glFramebufferTextureEXT", 31, -1},
2612 
2613    /* GL_OES_tessellation_shader */
2614    { "glPatchParameteriOES", 31, -1 },
2615 
2616    /* GL_OES_primitive_bound_box */
2617    { "glPrimitiveBoundingBoxOES", 31, -1 },
2618 
2619    /* GL_OES_viewport_array */
2620    { "glViewportArrayvOES", 31, -1 },
2621    { "glViewportIndexedfOES", 31, -1 },
2622    { "glViewportIndexedfvOES", 31, -1 },
2623    { "glScissorArrayvOES", 31, -1 },
2624    { "glScissorIndexedOES", 31, -1 },
2625    { "glScissorIndexedvOES", 31, -1 },
2626    { "glDepthRangeArrayfvOES", 31, -1 },
2627    { "glDepthRangeIndexedfOES", 31, -1 },
2628    { "glGetFloati_vOES", 31, -1 },
2629 
2630    { NULL, 0, -1 },
2631  };
2632