1 /* DO NOT EDIT *************************************************
2 * THIS FILE AUTOMATICALLY GENERATED BY THE es_generator.py SCRIPT
3 * API specification file: main/APIspec.xml
4 * GLES version: GLES2.0
5 * date: 2011-11-17 11:46:39
10 #include "GLES2/gl2ext.h"
11 #include "main/mfeatures.h"
12 #include "main/compiler.h"
13 #include "main/api_exec.h"
18 #define GLAPIENTRYP GL_APIENTRYP
22 /* These types are needed for the Mesa veneer, but are not defined in
23 * the standard GLES headers.
25 typedef double GLdouble;
26 typedef double GLclampd;
28 /* Mesa error handling requires these */
29 extern void *_mesa_get_current_context(void);
30 extern void _mesa_error(void *ctx, GLenum error, const char *fmtString, ... );
32 /*************************************************************
33 * Generated functions begin here
36 extern void GL_APIENTRY _mesa_ActiveTextureARB(GLenum texture);
37 static void GL_APIENTRY _es_ActiveTexture(GLenum texture)
74 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glActiveTexture(texture=0x%x)", texture);
78 _mesa_ActiveTextureARB(texture);
81 extern void GL_APIENTRY _mesa_AttachShader(GLuint program, GLuint shader);
82 #define _es_AttachShader _mesa_AttachShader
84 extern void GL_APIENTRY _mesa_BindAttribLocationARB(GLuint program, GLuint index, const char * name);
85 #define _es_BindAttribLocation _mesa_BindAttribLocationARB
87 extern void GL_APIENTRY _mesa_BindBufferARB(GLenum target, GLuint buffer);
88 static void GL_APIENTRY _es_BindBuffer(GLenum target, GLuint buffer)
92 case GL_ELEMENT_ARRAY_BUFFER:
95 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBindBuffer(target=0x%x)", target);
99 _mesa_BindBufferARB(target, buffer);
102 extern void GL_APIENTRY _mesa_BindFramebufferEXT(GLenum target, GLuint framebuffer);
103 static void GL_APIENTRY _es_BindFramebuffer(GLenum target, GLuint framebuffer)
109 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBindFramebuffer(target=0x%x)", target);
113 _mesa_BindFramebufferEXT(target, framebuffer);
116 extern void GL_APIENTRY _mesa_BindRenderbufferEXT(GLenum target, GLuint renderbuffer);
117 static void GL_APIENTRY _es_BindRenderbuffer(GLenum target, GLuint renderbuffer)
120 case GL_RENDERBUFFER:
123 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBindRenderbuffer(target=0x%x)", target);
127 _mesa_BindRenderbufferEXT(target, renderbuffer);
130 extern void GL_APIENTRY _mesa_BindTexture(GLenum target, GLuint texture);
131 static void GL_APIENTRY _es_BindTexture(GLenum target, GLuint texture)
135 case GL_TEXTURE_CUBE_MAP:
136 case GL_TEXTURE_3D_OES:
139 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBindTexture(target=0x%x)", target);
143 _mesa_BindTexture(target, texture);
146 extern void GL_APIENTRY _mesa_BlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
147 #define _es_BlendColor _mesa_BlendColor
149 extern void GL_APIENTRY _mesa_BlendEquation(GLenum mode);
150 static void GL_APIENTRY _es_BlendEquation(GLenum mode)
154 case GL_FUNC_SUBTRACT:
155 case GL_FUNC_REVERSE_SUBTRACT:
160 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendEquation(mode=0x%x)", mode);
164 _mesa_BlendEquation(mode);
167 extern void GL_APIENTRY _mesa_BlendEquationSeparateEXT(GLenum modeRGB, GLenum modeAlpha);
168 static void GL_APIENTRY _es_BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
172 case GL_FUNC_SUBTRACT:
173 case GL_FUNC_REVERSE_SUBTRACT:
178 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendEquationSeparate(modeRGB=0x%x)", modeRGB);
183 case GL_FUNC_SUBTRACT:
184 case GL_FUNC_REVERSE_SUBTRACT:
189 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendEquationSeparate(modeAlpha=0x%x)", modeAlpha);
193 _mesa_BlendEquationSeparateEXT(modeRGB, modeAlpha);
196 extern void GL_APIENTRY _mesa_BlendFunc(GLenum sfactor, GLenum dfactor);
197 static void GL_APIENTRY _es_BlendFunc(GLenum sfactor, GLenum dfactor)
203 case GL_ONE_MINUS_SRC_COLOR:
205 case GL_ONE_MINUS_SRC_ALPHA:
207 case GL_ONE_MINUS_DST_ALPHA:
209 case GL_ONE_MINUS_DST_COLOR:
210 case GL_SRC_ALPHA_SATURATE:
211 case GL_CONSTANT_COLOR:
212 case GL_CONSTANT_ALPHA:
213 case GL_ONE_MINUS_CONSTANT_COLOR:
214 case GL_ONE_MINUS_CONSTANT_ALPHA:
217 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFunc(sfactor=0x%x)", sfactor);
224 case GL_ONE_MINUS_SRC_COLOR:
226 case GL_ONE_MINUS_SRC_ALPHA:
228 case GL_ONE_MINUS_DST_ALPHA:
230 case GL_ONE_MINUS_DST_COLOR:
231 case GL_CONSTANT_COLOR:
232 case GL_CONSTANT_ALPHA:
233 case GL_ONE_MINUS_CONSTANT_COLOR:
234 case GL_ONE_MINUS_CONSTANT_ALPHA:
237 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFunc(dfactor=0x%x)", dfactor);
241 _mesa_BlendFunc(sfactor, dfactor);
244 extern void GL_APIENTRY _mesa_BlendFuncSeparateEXT(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
245 static void GL_APIENTRY _es_BlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
251 case GL_ONE_MINUS_SRC_COLOR:
253 case GL_ONE_MINUS_SRC_ALPHA:
255 case GL_ONE_MINUS_DST_ALPHA:
257 case GL_ONE_MINUS_DST_COLOR:
258 case GL_SRC_ALPHA_SATURATE:
259 case GL_CONSTANT_COLOR:
260 case GL_ONE_MINUS_CONSTANT_COLOR:
261 case GL_CONSTANT_ALPHA:
262 case GL_ONE_MINUS_CONSTANT_ALPHA:
265 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFuncSeparate(srcRGB=0x%x)", srcRGB);
272 case GL_ONE_MINUS_SRC_COLOR:
274 case GL_ONE_MINUS_SRC_ALPHA:
276 case GL_ONE_MINUS_DST_ALPHA:
278 case GL_ONE_MINUS_DST_COLOR:
279 case GL_CONSTANT_COLOR:
280 case GL_ONE_MINUS_CONSTANT_COLOR:
281 case GL_CONSTANT_ALPHA:
282 case GL_ONE_MINUS_CONSTANT_ALPHA:
285 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFuncSeparate(dstRGB=0x%x)", dstRGB);
292 case GL_ONE_MINUS_SRC_COLOR:
294 case GL_ONE_MINUS_SRC_ALPHA:
296 case GL_ONE_MINUS_DST_ALPHA:
298 case GL_ONE_MINUS_DST_COLOR:
299 case GL_SRC_ALPHA_SATURATE:
300 case GL_CONSTANT_COLOR:
301 case GL_ONE_MINUS_CONSTANT_COLOR:
302 case GL_CONSTANT_ALPHA:
303 case GL_ONE_MINUS_CONSTANT_ALPHA:
306 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFuncSeparate(srcAlpha=0x%x)", srcAlpha);
313 case GL_ONE_MINUS_SRC_COLOR:
315 case GL_ONE_MINUS_SRC_ALPHA:
317 case GL_ONE_MINUS_DST_ALPHA:
319 case GL_ONE_MINUS_DST_COLOR:
320 case GL_CONSTANT_COLOR:
321 case GL_ONE_MINUS_CONSTANT_COLOR:
322 case GL_CONSTANT_ALPHA:
323 case GL_ONE_MINUS_CONSTANT_ALPHA:
326 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBlendFuncSeparate(dstAlpha=0x%x)", dstAlpha);
330 _mesa_BlendFuncSeparateEXT(srcRGB, dstRGB, srcAlpha, dstAlpha);
333 extern void GL_APIENTRY _mesa_BufferDataARB(GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage);
334 static void GL_APIENTRY _es_BufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)
337 case GL_ARRAY_BUFFER:
338 case GL_ELEMENT_ARRAY_BUFFER:
341 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBufferData(target=0x%x)", target);
346 case GL_DYNAMIC_DRAW:
350 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBufferData(usage=0x%x)", usage);
354 _mesa_BufferDataARB(target, size, data, usage);
357 extern void GL_APIENTRY _mesa_BufferSubDataARB(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid * data);
358 static void GL_APIENTRY _es_BufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data)
361 case GL_ARRAY_BUFFER:
362 case GL_ELEMENT_ARRAY_BUFFER:
365 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glBufferSubData(target=0x%x)", target);
369 _mesa_BufferSubDataARB(target, offset, size, data);
372 extern GLenum GL_APIENTRY _mesa_CheckFramebufferStatusEXT(GLenum target);
373 static GLenum GL_APIENTRY _es_CheckFramebufferStatus(GLenum target)
379 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCheckFramebufferStatus(target=0x%x)", target);
383 return _mesa_CheckFramebufferStatusEXT(target);
386 extern void GL_APIENTRY _mesa_Clear(GLbitfield mask);
387 static void GL_APIENTRY _es_Clear(GLbitfield mask)
389 printf("%s\n", __FUNCTION__);
392 case (GL_COLOR_BUFFER_BIT):
393 case (GL_DEPTH_BUFFER_BIT):
394 case (GL_STENCIL_BUFFER_BIT):
395 case (GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT):
396 case (GL_COLOR_BUFFER_BIT|GL_STENCIL_BUFFER_BIT):
397 case (GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT):
398 case (GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT):
401 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glClear(mask=0x%x)", mask);
408 extern void GL_APIENTRY _mesa_ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
409 #define _es_ClearColor _mesa_ClearColor
411 extern void GL_APIENTRY _mesa_ClearDepthf(GLclampf depth);
412 #define _es_ClearDepthf _mesa_ClearDepthf
414 extern void GL_APIENTRY _mesa_ClearStencil(GLint s);
415 #define _es_ClearStencil _mesa_ClearStencil
417 extern void GL_APIENTRY _mesa_ColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
418 #define _es_ColorMask _mesa_ColorMask
420 extern void GL_APIENTRY _mesa_CompileShaderARB(GLuint shader);
421 #define _es_CompileShader _mesa_CompileShaderARB
423 extern void GL_APIENTRY _mesa_CompressedTexImage2DARB(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * data);
424 static void GL_APIENTRY _es_CompressedTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data)
428 case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
429 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
430 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
431 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
432 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
433 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
436 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCompressedTexImage2D(target=0x%x)", target);
439 switch(internalFormat) {
440 case GL_PALETTE4_RGB8_OES:
441 case GL_PALETTE4_RGBA8_OES:
442 case GL_PALETTE4_R5_G6_B5_OES:
443 case GL_PALETTE4_RGBA4_OES:
444 case GL_PALETTE4_RGB5_A1_OES:
445 case GL_PALETTE8_RGB8_OES:
446 case GL_PALETTE8_RGBA8_OES:
447 case GL_PALETTE8_R5_G6_B5_OES:
448 case GL_PALETTE8_RGBA4_OES:
449 case GL_PALETTE8_RGB5_A1_OES:
450 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
451 case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT:
454 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCompressedTexImage2D(internalFormat=0x%x)", internalFormat);
461 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glCompressedTexImage2D(border=%d)", border);
465 _mesa_CompressedTexImage2DARB(target, level, internalFormat, width, height, border, imageSize, data);
468 extern void GL_APIENTRY _mesa_CompressedTexImage3DARB(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imagesize, const GLvoid * data);
469 static void GL_APIENTRY _es_CompressedTexImage3DOES(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imagesize, const GLvoid *data)
472 case GL_TEXTURE_3D_OES:
475 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCompressedTexImage3DOES(target=0x%x)", target);
479 _mesa_CompressedTexImage3DARB(target, level, internalFormat, width, height, depth, border, imagesize, data);
482 extern void GL_APIENTRY _mesa_CompressedTexSubImage2DARB(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * data);
483 static void GL_APIENTRY _es_CompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data)
487 case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
488 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
489 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
490 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
491 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
492 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
495 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCompressedTexSubImage2D(target=0x%x)", target);
499 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
500 case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT:
503 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCompressedTexSubImage2D(format=0x%x)", format);
507 _mesa_CompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, data);
510 extern void GL_APIENTRY _mesa_CompressedTexSubImage3DARB(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imagesize, const GLvoid * data);
511 static void GL_APIENTRY _es_CompressedTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imagesize, const GLvoid *data)
514 case GL_TEXTURE_3D_OES:
517 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCompressedTexSubImage3DOES(target=0x%x)", target);
521 _mesa_CompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imagesize, data);
524 extern void GL_APIENTRY _mesa_CopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
525 static void GL_APIENTRY _es_CopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
529 case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
530 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
531 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
532 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
533 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
534 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
537 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCopyTexImage2D(target=0x%x)", target);
540 switch(internalFormat) {
545 case GL_LUMINANCE_ALPHA:
548 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glCopyTexImage2D(internalFormat=0x%x)", internalFormat);
555 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glCopyTexImage2D(border=%d)", border);
559 _mesa_CopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
562 extern void GL_APIENTRY _mesa_CopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
563 static void GL_APIENTRY _es_CopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
567 case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
568 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
569 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
570 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
571 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
572 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
575 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCopyTexSubImage2D(target=0x%x)", target);
579 _mesa_CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
582 extern void GL_APIENTRY _mesa_CopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
583 static void GL_APIENTRY _es_CopyTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
586 case GL_TEXTURE_3D_OES:
589 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCopyTexSubImage3DOES(target=0x%x)", target);
593 _mesa_CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
596 extern GLuint GL_APIENTRY _mesa_CreateProgram(void);
597 #define _es_CreateProgram _mesa_CreateProgram
599 extern GLuint GL_APIENTRY _mesa_CreateShader(GLenum type);
600 static GLuint GL_APIENTRY _es_CreateShader(GLenum type)
603 case GL_VERTEX_SHADER:
604 case GL_FRAGMENT_SHADER:
607 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCreateShader(type=0x%x)", type);
611 return _mesa_CreateShader(type);
614 extern void GL_APIENTRY _mesa_CullFace(GLenum mode);
615 static void GL_APIENTRY _es_CullFace(GLenum mode)
620 case GL_FRONT_AND_BACK:
623 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glCullFace(mode=0x%x)", mode);
627 _mesa_CullFace(mode);
630 extern void GL_APIENTRY _mesa_DeleteBuffersARB(GLsizei n, const GLuint * buffer);
631 #define _es_DeleteBuffers _mesa_DeleteBuffersARB
633 extern void GL_APIENTRY _mesa_DeleteFramebuffersEXT(GLsizei n, const GLuint * framebuffers);
634 #define _es_DeleteFramebuffers _mesa_DeleteFramebuffersEXT
636 extern void GL_APIENTRY _mesa_DeleteProgram(GLuint program);
637 #define _es_DeleteProgram _mesa_DeleteProgram
639 extern void GL_APIENTRY _mesa_DeleteRenderbuffersEXT(GLsizei n, const GLuint * renderbuffers);
640 #define _es_DeleteRenderbuffers _mesa_DeleteRenderbuffersEXT
642 extern void GL_APIENTRY _mesa_DeleteShader(GLuint shader);
643 #define _es_DeleteShader _mesa_DeleteShader
645 extern void GL_APIENTRY _mesa_DeleteTextures(GLsizei n, const GLuint * textures);
646 #define _es_DeleteTextures _mesa_DeleteTextures
648 extern void GL_APIENTRY _mesa_DepthFunc(GLenum func);
649 static void GL_APIENTRY _es_DepthFunc(GLenum func)
662 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDepthFunc(func=0x%x)", func);
666 _mesa_DepthFunc(func);
669 extern void GL_APIENTRY _mesa_DepthMask(GLboolean flag);
670 #define _es_DepthMask _mesa_DepthMask
672 extern void GL_APIENTRY _mesa_DepthRangef(GLclampf zNear, GLclampf zFar);
673 #define _es_DepthRangef _mesa_DepthRangef
675 extern void GL_APIENTRY _mesa_DetachShader(GLuint program, GLuint shader);
676 #define _es_DetachShader _mesa_DetachShader
678 extern void GL_APIENTRY _mesa_Disable(GLenum cap);
679 static void GL_APIENTRY _es_Disable(GLenum cap)
683 case GL_SCISSOR_TEST:
684 case GL_POLYGON_OFFSET_FILL:
685 case GL_SAMPLE_ALPHA_TO_COVERAGE:
686 case GL_SAMPLE_COVERAGE:
687 case GL_STENCIL_TEST:
693 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDisable(cap=0x%x)", cap);
700 extern void GL_APIENTRY _mesa_DisableVertexAttribArrayARB(GLuint index);
701 #define _es_DisableVertexAttribArray _mesa_DisableVertexAttribArrayARB
703 extern void GL_APIENTRY _mesa_DrawArrays(GLenum mode, GLint first, GLsizei count);
704 static void GL_APIENTRY _es_DrawArrays(GLenum mode, GLint first, GLsizei count)
712 case GL_TRIANGLE_STRIP:
713 case GL_TRIANGLE_FAN:
716 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDrawArrays(mode=0x%x)", mode);
720 _mesa_DrawArrays(mode, first, count);
723 extern void GL_APIENTRY _mesa_DrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid * indices);
724 static void GL_APIENTRY _es_DrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
732 case GL_TRIANGLE_STRIP:
733 case GL_TRIANGLE_FAN:
736 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDrawElements(mode=0x%x)", mode);
740 case GL_UNSIGNED_BYTE:
741 case GL_UNSIGNED_SHORT:
742 case GL_UNSIGNED_INT:
745 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glDrawElements(type=0x%x)", type);
749 _mesa_DrawElements(mode, count, type, indices);
752 extern void GL_APIENTRY _mesa_EGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image);
753 static void GL_APIENTRY _es_EGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image)
756 case GL_RENDERBUFFER:
759 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glEGLImageTargetRenderbufferStorageOES(target=0x%x)", target);
763 _mesa_EGLImageTargetRenderbufferStorageOES(target, image);
766 extern void GL_APIENTRY _mesa_EGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image);
767 static void GL_APIENTRY _es_EGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image)
773 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glEGLImageTargetTexture2DOES(target=0x%x)", target);
777 _mesa_EGLImageTargetTexture2DOES(target, image);
780 extern void GL_APIENTRY _mesa_Enable(GLenum cap);
781 static void GL_APIENTRY _es_Enable(GLenum cap)
785 case GL_SCISSOR_TEST:
786 case GL_POLYGON_OFFSET_FILL:
787 case GL_SAMPLE_ALPHA_TO_COVERAGE:
788 case GL_SAMPLE_COVERAGE:
789 case GL_STENCIL_TEST:
795 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glEnable(cap=0x%x)", cap);
802 extern void GL_APIENTRY _mesa_EnableVertexAttribArrayARB(GLuint index);
803 #define _es_EnableVertexAttribArray _mesa_EnableVertexAttribArrayARB
805 extern void GL_APIENTRY _mesa_Finish(void);
806 #define _es_Finish _mesa_Finish
808 extern void GL_APIENTRY _mesa_Flush(void);
809 #define _es_Flush _mesa_Flush
811 extern void GL_APIENTRY _mesa_FramebufferRenderbufferEXT(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
812 static void GL_APIENTRY _es_FramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
818 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferRenderbuffer(target=0x%x)", target);
822 case GL_COLOR_ATTACHMENT0:
823 case GL_DEPTH_ATTACHMENT:
824 case GL_STENCIL_ATTACHMENT:
827 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferRenderbuffer(attachment=0x%x)", attachment);
830 switch(renderbuffertarget) {
831 case GL_RENDERBUFFER:
834 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferRenderbuffer(renderbuffertarget=0x%x)", renderbuffertarget);
838 _mesa_FramebufferRenderbufferEXT(target, attachment, renderbuffertarget, renderbuffer);
841 extern void GL_APIENTRY _mesa_FramebufferTexture2DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
842 static void GL_APIENTRY _es_FramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
848 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferTexture2D(target=0x%x)", target);
852 case GL_COLOR_ATTACHMENT0:
853 case GL_DEPTH_ATTACHMENT:
854 case GL_STENCIL_ATTACHMENT:
857 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferTexture2D(attachment=0x%x)", attachment);
862 case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
863 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
864 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
865 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
866 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
867 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
870 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glFramebufferTexture2D(textarget=0x%x)", textarget);
874 _mesa_FramebufferTexture2DEXT(target, attachment, textarget, texture, level);
877 extern void GL_APIENTRY _mesa_FramebufferTexture3DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
878 static void GL_APIENTRY _es_FramebufferTexture3DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset)
884 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferTexture3DOES(target=0x%x)", target);
888 case GL_COLOR_ATTACHMENT0:
889 case GL_DEPTH_ATTACHMENT:
890 case GL_STENCIL_ATTACHMENT:
893 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFramebufferTexture3DOES(attachment=0x%x)", attachment);
897 case GL_TEXTURE_3D_OES:
900 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glFramebufferTexture3DOES(textarget=0x%x)", textarget);
904 _mesa_FramebufferTexture3DEXT(target, attachment, textarget, texture, level, zoffset);
907 extern void GL_APIENTRY _mesa_FrontFace(GLenum mode);
908 static void GL_APIENTRY _es_FrontFace(GLenum mode)
915 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glFrontFace(mode=0x%x)", mode);
919 _mesa_FrontFace(mode);
922 extern void GL_APIENTRY _mesa_GenBuffersARB(GLsizei n, GLuint * buffer);
923 #define _es_GenBuffers _mesa_GenBuffersARB
925 extern void GL_APIENTRY _mesa_GenFramebuffersEXT(GLsizei n, GLuint * ids);
926 #define _es_GenFramebuffers _mesa_GenFramebuffersEXT
928 extern void GL_APIENTRY _mesa_GenRenderbuffersEXT(GLsizei n, GLuint * renderbuffers);
929 #define _es_GenRenderbuffers _mesa_GenRenderbuffersEXT
931 extern void GL_APIENTRY _mesa_GenTextures(GLsizei n, GLuint * textures);
932 #define _es_GenTextures _mesa_GenTextures
934 extern void GL_APIENTRY _mesa_GenerateMipmapEXT(GLenum target);
935 static void GL_APIENTRY _es_GenerateMipmap(GLenum target)
939 case GL_TEXTURE_CUBE_MAP:
940 case GL_TEXTURE_3D_OES:
943 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGenerateMipmap(target=0x%x)", target);
947 _mesa_GenerateMipmapEXT(target);
950 extern void GL_APIENTRY _mesa_GetActiveAttribARB(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name);
951 #define _es_GetActiveAttrib _mesa_GetActiveAttribARB
953 extern void GL_APIENTRY _mesa_GetActiveUniformARB(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name);
954 #define _es_GetActiveUniform _mesa_GetActiveUniformARB
956 extern void GL_APIENTRY _mesa_GetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei * count, GLuint * shaders);
957 #define _es_GetAttachedShaders _mesa_GetAttachedShaders
959 extern GLint GL_APIENTRY _mesa_GetAttribLocationARB(GLuint program, const char * name);
960 #define _es_GetAttribLocation _mesa_GetAttribLocationARB
962 extern void GL_APIENTRY _mesa_GetBooleanv(GLenum pname, GLboolean * params);
963 #define _es_GetBooleanv _mesa_GetBooleanv
965 extern void GL_APIENTRY _mesa_GetBufferParameterivARB(GLenum target, GLenum pname, GLint * params);
966 static void GL_APIENTRY _es_GetBufferParameteriv(GLenum target, GLenum pname, GLint *params)
969 case GL_ARRAY_BUFFER:
970 case GL_ELEMENT_ARRAY_BUFFER:
973 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetBufferParameteriv(target=0x%x)", target);
978 case GL_BUFFER_USAGE:
979 case GL_BUFFER_ACCESS_OES:
980 case GL_BUFFER_MAPPED_OES:
983 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetBufferParameteriv(pname=0x%x)", pname);
987 _mesa_GetBufferParameterivARB(target, pname, params);
990 extern void GL_APIENTRY _mesa_GetBufferPointervARB(GLenum target, GLenum pname, GLvoid ** params);
991 static void GL_APIENTRY _es_GetBufferPointervOES(GLenum target, GLenum pname, GLvoid **params)
994 case GL_ARRAY_BUFFER:
995 case GL_ELEMENT_ARRAY_BUFFER:
998 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetBufferPointervOES(target=0x%x)", target);
1002 case GL_BUFFER_MAP_POINTER_OES:
1005 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetBufferPointervOES(pname=0x%x)", pname);
1009 _mesa_GetBufferPointervARB(target, pname, params);
1012 extern GLenum GL_APIENTRY _mesa_GetError(void);
1013 #define _es_GetError _mesa_GetError
1015 extern void GL_APIENTRY _mesa_GetFloatv(GLenum pname, GLfloat * params);
1016 #define _es_GetFloatv _mesa_GetFloatv
1018 extern void GL_APIENTRY _mesa_GetFramebufferAttachmentParameterivEXT(GLenum target, GLenum attachment, GLenum pname, GLint * params);
1019 static void GL_APIENTRY _es_GetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params)
1022 case GL_FRAMEBUFFER:
1025 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetFramebufferAttachmentParameteriv(target=0x%x)", target);
1029 case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: /* size 1 */
1030 case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: /* size 1 */
1031 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: /* size 1 */
1032 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: /* size 1 */
1033 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES: /* size 1 */
1036 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetFramebufferAttachmentParameteriv(pname=0x%x)", pname);
1040 _mesa_GetFramebufferAttachmentParameterivEXT(target, attachment, pname, params);
1043 extern void GL_APIENTRY _mesa_GetIntegerv(GLenum pname, GLint * params);
1044 #define _es_GetIntegerv _mesa_GetIntegerv
1046 extern void GL_APIENTRY _mesa_GetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei * length, GLchar * infoLog);
1047 #define _es_GetProgramInfoLog _mesa_GetProgramInfoLog
1049 extern void GL_APIENTRY _mesa_GetProgramiv(GLuint program, GLenum pname, GLint * params);
1050 static void GL_APIENTRY _es_GetProgramiv(GLuint program, GLenum pname, GLint *params)
1053 case GL_DELETE_STATUS:
1054 case GL_LINK_STATUS:
1055 case GL_VALIDATE_STATUS:
1056 case GL_INFO_LOG_LENGTH:
1057 case GL_ATTACHED_SHADERS:
1058 case GL_ACTIVE_ATTRIBUTES:
1059 case GL_ACTIVE_ATTRIBUTE_MAX_LENGTH:
1060 case GL_ACTIVE_UNIFORMS:
1061 case GL_ACTIVE_UNIFORM_MAX_LENGTH:
1064 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetProgramiv(pname=0x%x)", pname);
1068 _mesa_GetProgramiv(program, pname, params);
1071 extern void GL_APIENTRY _mesa_GetRenderbufferParameterivEXT(GLenum target, GLenum pname, GLint * params);
1072 static void GL_APIENTRY _es_GetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params)
1075 case GL_RENDERBUFFER:
1078 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetRenderbufferParameteriv(target=0x%x)", target);
1082 case GL_RENDERBUFFER_WIDTH: /* size 1 */
1083 case GL_RENDERBUFFER_HEIGHT: /* size 1 */
1084 case GL_RENDERBUFFER_INTERNAL_FORMAT: /* size 1 */
1085 case GL_RENDERBUFFER_RED_SIZE: /* size 1 */
1086 case GL_RENDERBUFFER_GREEN_SIZE: /* size 1 */
1087 case GL_RENDERBUFFER_BLUE_SIZE: /* size 1 */
1088 case GL_RENDERBUFFER_ALPHA_SIZE: /* size 1 */
1089 case GL_RENDERBUFFER_DEPTH_SIZE: /* size 1 */
1090 case GL_RENDERBUFFER_STENCIL_SIZE: /* size 1 */
1093 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetRenderbufferParameteriv(pname=0x%x)", pname);
1097 _mesa_GetRenderbufferParameterivEXT(target, pname, params);
1100 extern void GL_APIENTRY _mesa_GetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * infoLog);
1101 #define _es_GetShaderInfoLog _mesa_GetShaderInfoLog
1103 extern void GL_APIENTRY _mesa_GetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint * range, GLint * precision);
1104 static void GL_APIENTRY _es_GetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
1106 switch(shadertype) {
1107 case GL_VERTEX_SHADER:
1108 case GL_FRAGMENT_SHADER:
1111 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetShaderPrecisionFormat(shadertype=0x%x)", shadertype);
1114 switch(precisiontype) {
1116 case GL_MEDIUM_FLOAT:
1123 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetShaderPrecisionFormat(precisiontype=0x%x)", precisiontype);
1127 _mesa_GetShaderPrecisionFormat(shadertype, precisiontype, range, precision);
1130 extern void GL_APIENTRY _mesa_GetShaderSourceARB(GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * source);
1131 #define _es_GetShaderSource _mesa_GetShaderSourceARB
1133 extern void GL_APIENTRY _mesa_GetShaderiv(GLuint shader, GLenum pname, GLint * params);
1134 static void GL_APIENTRY _es_GetShaderiv(GLuint shader, GLenum pname, GLint *params)
1137 case GL_SHADER_TYPE:
1138 case GL_COMPILE_STATUS:
1139 case GL_DELETE_STATUS:
1140 case GL_INFO_LOG_LENGTH:
1141 case GL_SHADER_SOURCE_LENGTH:
1144 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetShaderiv(pname=0x%x)", pname);
1148 _mesa_GetShaderiv(shader, pname, params);
1151 extern const GLubyte * GL_APIENTRY _mesa_GetString(GLenum name);
1152 static const GLubyte * GL_APIENTRY _es_GetString(GLenum name)
1159 case GL_SHADING_LANGUAGE_VERSION:
1162 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetString(name=0x%x)", name);
1163 return (const GLubyte *) 0;
1166 return _mesa_GetString(name);
1169 extern void GL_APIENTRY _mesa_GetTexParameterfv(GLenum target, GLenum pname, GLfloat * params);
1170 static void GL_APIENTRY _es_GetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
1174 case GL_TEXTURE_CUBE_MAP:
1175 case GL_TEXTURE_3D_OES:
1178 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameterfv(target=0x%x)", target);
1182 case GL_TEXTURE_WRAP_S: /* size 1 */
1183 case GL_TEXTURE_WRAP_T: /* size 1 */
1184 case GL_TEXTURE_WRAP_R_OES: /* size 1 */
1185 case GL_TEXTURE_MIN_FILTER: /* size 1 */
1186 case GL_TEXTURE_MAG_FILTER: /* size 1 */
1189 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameterfv(pname=0x%x)", pname);
1193 _mesa_GetTexParameterfv(target, pname, params);
1196 extern void GL_APIENTRY _mesa_GetTexParameteriv(GLenum target, GLenum pname, GLint * params);
1197 static void GL_APIENTRY _es_GetTexParameteriv(GLenum target, GLenum pname, GLint *params)
1201 case GL_TEXTURE_CUBE_MAP:
1202 case GL_TEXTURE_3D_OES:
1205 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameteriv(target=0x%x)", target);
1209 case GL_TEXTURE_WRAP_S: /* size 1 */
1210 case GL_TEXTURE_WRAP_T: /* size 1 */
1211 case GL_TEXTURE_WRAP_R_OES: /* size 1 */
1212 case GL_TEXTURE_MIN_FILTER: /* size 1 */
1213 case GL_TEXTURE_MAG_FILTER: /* size 1 */
1216 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetTexParameteriv(pname=0x%x)", pname);
1220 _mesa_GetTexParameteriv(target, pname, params);
1223 extern GLint GL_APIENTRY _mesa_GetUniformLocationARB(GLuint program, const char * name);
1224 #define _es_GetUniformLocation _mesa_GetUniformLocationARB
1226 extern void GL_APIENTRY _mesa_GetUniformfvARB(GLuint program, GLint location, GLfloat * params);
1227 #define _es_GetUniformfv _mesa_GetUniformfvARB
1229 extern void GL_APIENTRY _mesa_GetUniformivARB(GLuint program, GLint location, GLint * params);
1230 #define _es_GetUniformiv _mesa_GetUniformivARB
1232 extern void GL_APIENTRY _mesa_GetVertexAttribPointervARB(GLuint index, GLenum pname, GLvoid ** pointer);
1233 static void GL_APIENTRY _es_GetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid **pointer)
1236 case GL_VERTEX_ATTRIB_ARRAY_POINTER:
1239 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetVertexAttribPointerv(pname=0x%x)", pname);
1243 _mesa_GetVertexAttribPointervARB(index, pname, pointer);
1246 extern void GL_APIENTRY _mesa_GetVertexAttribfvARB(GLuint index, GLenum pname, GLfloat * params);
1247 static void GL_APIENTRY _es_GetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)
1250 case GL_VERTEX_ATTRIB_ARRAY_ENABLED: /* size 1 */
1251 case GL_VERTEX_ATTRIB_ARRAY_SIZE: /* size 1 */
1252 case GL_VERTEX_ATTRIB_ARRAY_STRIDE: /* size 1 */
1253 case GL_VERTEX_ATTRIB_ARRAY_TYPE: /* size 1 */
1254 case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED: /* size 1 */
1255 case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: /* size 1 */
1256 case GL_CURRENT_VERTEX_ATTRIB: /* size 16? */
1259 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetVertexAttribfv(pname=0x%x)", pname);
1263 _mesa_GetVertexAttribfvARB(index, pname, params);
1266 extern void GL_APIENTRY _mesa_GetVertexAttribivARB(GLuint index, GLenum pname, GLint * params);
1267 static void GL_APIENTRY _es_GetVertexAttribiv(GLuint index, GLenum pname, GLint *params)
1270 case GL_VERTEX_ATTRIB_ARRAY_ENABLED: /* size 1 */
1271 case GL_VERTEX_ATTRIB_ARRAY_SIZE: /* size 1 */
1272 case GL_VERTEX_ATTRIB_ARRAY_STRIDE: /* size 1 */
1273 case GL_VERTEX_ATTRIB_ARRAY_TYPE: /* size 1 */
1274 case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED: /* size 1 */
1275 case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: /* size 1 */
1276 case GL_CURRENT_VERTEX_ATTRIB: /* size 16? */
1279 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glGetVertexAttribiv(pname=0x%x)", pname);
1283 _mesa_GetVertexAttribivARB(index, pname, params);
1286 extern void GL_APIENTRY _mesa_Hint(GLenum target, GLenum mode);
1287 static void GL_APIENTRY _es_Hint(GLenum target, GLenum mode)
1290 case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES:
1291 case GL_GENERATE_MIPMAP_HINT:
1294 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glHint(target=0x%x)", target);
1303 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glHint(mode=0x%x)", mode);
1307 _mesa_Hint(target, mode);
1310 extern GLboolean GL_APIENTRY _mesa_IsBufferARB(GLuint buffer);
1311 #define _es_IsBuffer _mesa_IsBufferARB
1313 extern GLboolean GL_APIENTRY _mesa_IsEnabled(GLenum cap);
1314 static GLboolean GL_APIENTRY _es_IsEnabled(GLenum cap)
1318 case GL_SCISSOR_TEST:
1319 case GL_POLYGON_OFFSET_FILL:
1320 case GL_SAMPLE_ALPHA_TO_COVERAGE:
1321 case GL_SAMPLE_COVERAGE:
1322 case GL_STENCIL_TEST:
1328 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glIsEnabled(cap=0x%x)", cap);
1332 return _mesa_IsEnabled(cap);
1335 extern GLboolean GL_APIENTRY _mesa_IsFramebufferEXT(GLuint framebuffer);
1336 #define _es_IsFramebuffer _mesa_IsFramebufferEXT
1338 extern GLboolean GL_APIENTRY _mesa_IsProgram(GLuint program);
1339 #define _es_IsProgram _mesa_IsProgram
1341 extern GLboolean GL_APIENTRY _mesa_IsRenderbufferEXT(GLuint renderbuffer);
1342 #define _es_IsRenderbuffer _mesa_IsRenderbufferEXT
1344 extern GLboolean GL_APIENTRY _mesa_IsShader(GLuint shader);
1345 #define _es_IsShader _mesa_IsShader
1347 extern GLboolean GL_APIENTRY _mesa_IsTexture(GLuint texture);
1348 #define _es_IsTexture _mesa_IsTexture
1350 extern void GL_APIENTRY _mesa_LineWidth(GLfloat width);
1351 #define _es_LineWidth _mesa_LineWidth
1353 extern void GL_APIENTRY _mesa_LinkProgramARB(GLuint program);
1354 #define _es_LinkProgram _mesa_LinkProgramARB
1356 extern void * GL_APIENTRY _mesa_MapBufferARB(GLenum target, GLenum access);
1357 static void * GL_APIENTRY _es_MapBufferOES(GLenum target, GLenum access)
1360 case GL_ARRAY_BUFFER:
1361 case GL_ELEMENT_ARRAY_BUFFER:
1364 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMapBufferOES(target=0x%x)", target);
1368 case GL_WRITE_ONLY_OES:
1371 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMapBufferOES(access=0x%x)", access);
1375 return _mesa_MapBufferARB(target, access);
1378 extern void GL_APIENTRY _mesa_MultiDrawArraysEXT(GLenum mode, const GLint * first, const GLsizei * count, GLsizei primcount);
1379 static void GL_APIENTRY _es_MultiDrawArraysEXT(GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount)
1387 case GL_TRIANGLE_STRIP:
1388 case GL_TRIANGLE_FAN:
1391 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMultiDrawArraysEXT(mode=0x%x)", mode);
1395 _mesa_MultiDrawArraysEXT(mode, first, count, primcount);
1398 extern void GL_APIENTRY _mesa_MultiDrawElementsEXT(GLenum mode, const GLsizei * count, GLenum type, const GLvoid ** indices, GLsizei primcount);
1399 static void GL_APIENTRY _es_MultiDrawElementsEXT(GLenum mode, const GLsizei *count, GLenum type, const GLvoid **indices, GLsizei primcount)
1407 case GL_TRIANGLE_STRIP:
1408 case GL_TRIANGLE_FAN:
1411 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMultiDrawElementsEXT(mode=0x%x)", mode);
1415 case GL_UNSIGNED_BYTE:
1416 case GL_UNSIGNED_SHORT:
1417 case GL_UNSIGNED_INT:
1420 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glMultiDrawElementsEXT(type=0x%x)", type);
1424 _mesa_MultiDrawElementsEXT(mode, count, type, indices, primcount);
1427 extern void GL_APIENTRY _mesa_PixelStorei(GLenum pname, GLint param);
1428 static void GL_APIENTRY _es_PixelStorei(GLenum pname, GLint param)
1431 case GL_PACK_ALIGNMENT:
1432 case GL_UNPACK_ALIGNMENT:
1435 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glPixelStorei(pname=0x%x)", pname);
1445 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glPixelStorei(param=%d)", param);
1449 _mesa_PixelStorei(pname, param);
1452 extern void GL_APIENTRY _mesa_PolygonOffset(GLfloat factor, GLfloat units);
1453 #define _es_PolygonOffset _mesa_PolygonOffset
1455 extern void GL_APIENTRY _mesa_ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * pixels);
1456 static void GL_APIENTRY _es_ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
1460 if (type != GL_UNSIGNED_BYTE) {
1461 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glReadPixels(format=0x%x)", format);
1466 if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_5_6_5) {
1467 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glReadPixels(format=0x%x)", format);
1472 if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_4_4_4_4 && type != GL_UNSIGNED_SHORT_5_5_5_1) {
1473 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glReadPixels(format=0x%x)", format);
1478 case GL_LUMINANCE_ALPHA:
1479 if (type != GL_UNSIGNED_BYTE) {
1480 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glReadPixels(format=0x%x)", format);
1485 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glReadPixels(format=0x%x)", format);
1489 _mesa_ReadPixels(x, y, width, height, format, type, pixels);
1492 extern void GL_APIENTRY _mesa_ReleaseShaderCompiler(void);
1493 #define _es_ReleaseShaderCompiler _mesa_ReleaseShaderCompiler
1495 /* this function is special and is defined elsewhere */
1496 extern void GL_APIENTRY _es_RenderbufferStorageEXT(GLenum target, GLenum internalFormat, GLsizei width, GLsizei height);
1497 static void GL_APIENTRY _check_RenderbufferStorage(GLenum target, GLenum internalFormat, GLsizei width, GLsizei height)
1500 case GL_RENDERBUFFER:
1503 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glRenderbufferStorage(target=0x%x)", target);
1506 switch(internalFormat) {
1507 case GL_DEPTH_COMPONENT16:
1511 case GL_STENCIL_INDEX8:
1512 case GL_DEPTH_COMPONENT24_OES:
1513 case GL_DEPTH_COMPONENT32_OES:
1516 case GL_STENCIL_INDEX1_OES:
1517 case GL_STENCIL_INDEX4_OES:
1518 case GL_DEPTH24_STENCIL8_OES:
1521 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glRenderbufferStorage(internalFormat=0x%x)", internalFormat);
1525 _es_RenderbufferStorageEXT(target, internalFormat, width, height);
1528 extern void GL_APIENTRY _mesa_SampleCoverageARB(GLclampf value, GLboolean invert);
1529 #define _es_SampleCoverage _mesa_SampleCoverageARB
1531 extern void GL_APIENTRY _mesa_Scissor(GLint x, GLint y, GLsizei width, GLsizei height);
1532 #define _es_Scissor _mesa_Scissor
1534 extern void GL_APIENTRY _mesa_ShaderBinary(GLsizei n, const GLuint * shaders, GLenum binaryformat, const GLvoid * binary, GLsizei length);
1535 #define _es_ShaderBinary _mesa_ShaderBinary
1537 extern void GL_APIENTRY _mesa_ShaderSourceARB(GLuint shader, GLsizei count, const GLchar ** string, const int * length);
1538 #define _es_ShaderSource _mesa_ShaderSourceARB
1540 extern void GL_APIENTRY _mesa_StencilFunc(GLenum func, GLint ref, GLuint mask);
1541 static void GL_APIENTRY _es_StencilFunc(GLenum func, GLint ref, GLuint mask)
1554 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilFunc(func=0x%x)", func);
1558 _mesa_StencilFunc(func, ref, mask);
1561 extern void GL_APIENTRY _mesa_StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask);
1562 static void GL_APIENTRY _es_StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
1567 case GL_FRONT_AND_BACK:
1570 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilFuncSeparate(face=0x%x)", face);
1584 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilFuncSeparate(func=0x%x)", func);
1588 _mesa_StencilFuncSeparate(face, func, ref, mask);
1591 extern void GL_APIENTRY _mesa_StencilMask(GLuint mask);
1592 #define _es_StencilMask _mesa_StencilMask
1594 extern void GL_APIENTRY _mesa_StencilMaskSeparate(GLenum face, GLuint mask);
1595 static void GL_APIENTRY _es_StencilMaskSeparate(GLenum face, GLuint mask)
1600 case GL_FRONT_AND_BACK:
1603 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilMaskSeparate(face=0x%x)", face);
1607 _mesa_StencilMaskSeparate(face, mask);
1610 extern void GL_APIENTRY _mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass);
1611 static void GL_APIENTRY _es_StencilOp(GLenum fail, GLenum zfail, GLenum zpass)
1624 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOp(fail=0x%x)", fail);
1638 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOp(zfail=0x%x)", zfail);
1652 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOp(zpass=0x%x)", zpass);
1656 _mesa_StencilOp(fail, zfail, zpass);
1659 extern void GL_APIENTRY _mesa_StencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass);
1660 static void GL_APIENTRY _es_StencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
1665 case GL_FRONT_AND_BACK:
1668 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOpSeparate(face=0x%x)", face);
1682 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOpSeparate(fail=0x%x)", fail);
1696 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOpSeparate(zfail=0x%x)", zfail);
1710 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glStencilOpSeparate(zpass=0x%x)", zpass);
1714 _mesa_StencilOpSeparate(face, fail, zfail, zpass);
1717 extern void GL_APIENTRY _mesa_TexImage2D(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
1718 static void GL_APIENTRY _es_TexImage2D(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
1722 case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
1723 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
1724 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
1725 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
1726 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
1727 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
1730 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexImage2D(target=0x%x)", target);
1733 switch(internalFormat) {
1735 if (format != GL_ALPHA) {
1736 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexImage2D(internalFormat=0x%x)", internalFormat);
1741 if (format != GL_RGB) {
1742 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexImage2D(internalFormat=0x%x)", internalFormat);
1747 if (format != GL_RGBA) {
1748 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexImage2D(internalFormat=0x%x)", internalFormat);
1753 if (format != GL_LUMINANCE) {
1754 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexImage2D(internalFormat=0x%x)", internalFormat);
1758 case GL_LUMINANCE_ALPHA:
1759 if (format != GL_LUMINANCE_ALPHA) {
1760 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexImage2D(internalFormat=0x%x)", internalFormat);
1764 case GL_DEPTH_COMPONENT:
1765 if (format != GL_DEPTH_COMPONENT) {
1766 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexImage2D(internalFormat=0x%x)", internalFormat);
1770 case GL_DEPTH_STENCIL_OES:
1771 if (format != GL_DEPTH_STENCIL_OES) {
1772 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexImage2D(internalFormat=0x%x)", internalFormat);
1777 if (format != GL_BGRA_EXT) {
1778 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexImage2D(internalFormat=0x%x)", internalFormat);
1783 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexImage2D(internalFormat=%d)", internalFormat);
1790 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glTexImage2D(border=%d)", border);
1795 if (type != GL_UNSIGNED_BYTE) {
1796 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage2D(format=0x%x)", format);
1801 if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_5_6_5) {
1802 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage2D(format=0x%x)", format);
1807 if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_4_4_4_4 && type != GL_UNSIGNED_SHORT_5_5_5_1 && type != GL_UNSIGNED_INT_2_10_10_10_REV_EXT) {
1808 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage2D(format=0x%x)", format);
1813 case GL_LUMINANCE_ALPHA:
1814 if (type != GL_UNSIGNED_BYTE) {
1815 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage2D(format=0x%x)", format);
1819 case GL_DEPTH_COMPONENT:
1820 if (type != GL_UNSIGNED_SHORT && type != GL_UNSIGNED_INT) {
1821 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage2D(format=0x%x)", format);
1825 case GL_DEPTH_STENCIL_OES:
1826 if (type != GL_UNSIGNED_INT_24_8_OES) {
1827 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage2D(format=0x%x)", format);
1832 if (type != GL_UNSIGNED_BYTE) {
1833 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage2D(format=0x%x)", format);
1838 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage2D(format=0x%x)", format);
1842 _mesa_TexImage2D(target, level, internalFormat, width, height, border, format, type, pixels);
1845 extern void GL_APIENTRY _mesa_TexImage3D(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels);
1846 static void GL_APIENTRY _es_TexImage3DOES(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
1849 case GL_TEXTURE_3D_OES:
1852 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexImage3DOES(target=0x%x)", target);
1855 switch(internalFormat) {
1860 case GL_LUMINANCE_ALPHA:
1863 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexImage3DOES(internalFormat=0x%x)", internalFormat);
1868 if (type != GL_UNSIGNED_BYTE) {
1869 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage3DOES(format=0x%x)", format);
1874 if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_5_6_5) {
1875 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage3DOES(format=0x%x)", format);
1880 if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_4_4_4_4 && type != GL_UNSIGNED_SHORT_5_5_5_1 && type != GL_UNSIGNED_INT_2_10_10_10_REV_EXT) {
1881 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage3DOES(format=0x%x)", format);
1886 case GL_LUMINANCE_ALPHA:
1887 if (type != GL_UNSIGNED_BYTE) {
1888 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage3DOES(format=0x%x)", format);
1893 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexImage3DOES(format=0x%x)", format);
1897 _mesa_TexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels);
1900 extern void GL_APIENTRY _mesa_TexParameterf(GLenum target, GLenum pname, GLfloat param);
1901 static void GL_APIENTRY _es_TexParameterf(GLenum target, GLenum pname, GLfloat param)
1905 case GL_TEXTURE_CUBE_MAP:
1906 case GL_TEXTURE_3D_OES:
1909 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(target=0x%x)", target);
1913 case GL_TEXTURE_WRAP_S:
1914 case GL_TEXTURE_WRAP_T:
1915 case GL_TEXTURE_WRAP_R_OES:
1916 if (param != GL_CLAMP_TO_EDGE && param != GL_REPEAT && param != GL_MIRRORED_REPEAT) {
1917 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(pname=0x%x)", pname);
1921 case GL_TEXTURE_MIN_FILTER:
1922 if (param != GL_NEAREST && param != GL_LINEAR && param != GL_NEAREST_MIPMAP_NEAREST && param != GL_NEAREST_MIPMAP_LINEAR && param != GL_LINEAR_MIPMAP_NEAREST && param != GL_LINEAR_MIPMAP_LINEAR) {
1923 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(pname=0x%x)", pname);
1927 case GL_TEXTURE_MAG_FILTER:
1928 if (param != GL_NEAREST && param != GL_LINEAR) {
1929 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(pname=0x%x)", pname);
1933 case GL_TEXTURE_MAX_ANISOTROPY_EXT:
1936 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterf(pname=0x%x)", pname);
1940 _mesa_TexParameterf(target, pname, param);
1943 extern void GL_APIENTRY _mesa_TexParameterfv(GLenum target, GLenum pname, const GLfloat * params);
1944 static void GL_APIENTRY _es_TexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
1948 case GL_TEXTURE_CUBE_MAP:
1949 case GL_TEXTURE_3D_OES:
1952 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(target=0x%x)", target);
1956 case GL_TEXTURE_WRAP_S: /* size 1 */
1957 case GL_TEXTURE_WRAP_T: /* size 1 */
1958 case GL_TEXTURE_WRAP_R_OES: /* size 1 */
1959 if (params[0] != GL_CLAMP_TO_EDGE && params[0] != GL_REPEAT && params[0] != GL_MIRRORED_REPEAT) {
1960 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(pname=0x%x)", pname);
1964 case GL_TEXTURE_MIN_FILTER: /* size 1 */
1965 if (params[0] != GL_NEAREST && params[0] != GL_LINEAR && params[0] != GL_NEAREST_MIPMAP_NEAREST && params[0] != GL_NEAREST_MIPMAP_LINEAR && params[0] != GL_LINEAR_MIPMAP_NEAREST && params[0] != GL_LINEAR_MIPMAP_LINEAR) {
1966 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(pname=0x%x)", pname);
1970 case GL_TEXTURE_MAG_FILTER: /* size 1 */
1971 if (params[0] != GL_NEAREST && params[0] != GL_LINEAR) {
1972 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(pname=0x%x)", pname);
1976 case GL_TEXTURE_MAX_ANISOTROPY_EXT: /* size 1 */
1979 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameterfv(pname=0x%x)", pname);
1983 _mesa_TexParameterfv(target, pname, params);
1986 extern void GL_APIENTRY _mesa_TexParameteri(GLenum target, GLenum pname, GLint param);
1987 static void GL_APIENTRY _es_TexParameteri(GLenum target, GLenum pname, GLint param)
1991 case GL_TEXTURE_CUBE_MAP:
1992 case GL_TEXTURE_3D_OES:
1995 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(target=0x%x)", target);
1999 case GL_TEXTURE_WRAP_S:
2000 case GL_TEXTURE_WRAP_T:
2001 case GL_TEXTURE_WRAP_R_OES:
2002 if (param != GL_CLAMP_TO_EDGE && param != GL_REPEAT && param != GL_MIRRORED_REPEAT) {
2003 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(pname=0x%x)", pname);
2007 case GL_TEXTURE_MIN_FILTER:
2008 if (param != GL_NEAREST && param != GL_LINEAR && param != GL_NEAREST_MIPMAP_NEAREST && param != GL_NEAREST_MIPMAP_LINEAR && param != GL_LINEAR_MIPMAP_NEAREST && param != GL_LINEAR_MIPMAP_LINEAR) {
2009 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(pname=0x%x)", pname);
2013 case GL_TEXTURE_MAG_FILTER:
2014 if (param != GL_NEAREST && param != GL_LINEAR) {
2015 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(pname=0x%x)", pname);
2019 case GL_TEXTURE_MAX_ANISOTROPY_EXT:
2022 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteri(pname=0x%x)", pname);
2026 _mesa_TexParameteri(target, pname, param);
2029 extern void GL_APIENTRY _mesa_TexParameteriv(GLenum target, GLenum pname, const GLint * params);
2030 static void GL_APIENTRY _es_TexParameteriv(GLenum target, GLenum pname, const GLint *params)
2034 case GL_TEXTURE_CUBE_MAP:
2035 case GL_TEXTURE_3D_OES:
2038 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(target=0x%x)", target);
2042 case GL_TEXTURE_WRAP_S: /* size 1 */
2043 case GL_TEXTURE_WRAP_T: /* size 1 */
2044 case GL_TEXTURE_WRAP_R_OES: /* size 1 */
2045 if (params[0] != GL_CLAMP_TO_EDGE && params[0] != GL_REPEAT && params[0] != GL_MIRRORED_REPEAT) {
2046 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(pname=0x%x)", pname);
2050 case GL_TEXTURE_MIN_FILTER: /* size 1 */
2051 if (params[0] != GL_NEAREST && params[0] != GL_LINEAR && params[0] != GL_NEAREST_MIPMAP_NEAREST && params[0] != GL_NEAREST_MIPMAP_LINEAR && params[0] != GL_LINEAR_MIPMAP_NEAREST && params[0] != GL_LINEAR_MIPMAP_LINEAR) {
2052 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(pname=0x%x)", pname);
2056 case GL_TEXTURE_MAG_FILTER: /* size 1 */
2057 if (params[0] != GL_NEAREST && params[0] != GL_LINEAR) {
2058 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(pname=0x%x)", pname);
2062 case GL_TEXTURE_MAX_ANISOTROPY_EXT: /* size 1 */
2065 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexParameteriv(pname=0x%x)", pname);
2069 _mesa_TexParameteriv(target, pname, params);
2072 extern void GL_APIENTRY _mesa_TexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels);
2073 static void GL_APIENTRY _es_TexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
2077 case GL_TEXTURE_CUBE_MAP_POSITIVE_X:
2078 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:
2079 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:
2080 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:
2081 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:
2082 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:
2085 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexSubImage2D(target=0x%x)", target);
2090 if (type != GL_UNSIGNED_BYTE) {
2091 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage2D(format=0x%x)", format);
2096 if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_5_6_5) {
2097 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage2D(format=0x%x)", format);
2102 if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_4_4_4_4 && type != GL_UNSIGNED_SHORT_5_5_5_1 && type != GL_UNSIGNED_INT_2_10_10_10_REV_EXT) {
2103 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage2D(format=0x%x)", format);
2108 case GL_LUMINANCE_ALPHA:
2109 if (type != GL_UNSIGNED_BYTE) {
2110 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage2D(format=0x%x)", format);
2114 case GL_DEPTH_COMPONENT:
2115 if (type != GL_UNSIGNED_SHORT && type != GL_UNSIGNED_INT) {
2116 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage2D(format=0x%x)", format);
2120 case GL_DEPTH_STENCIL_OES:
2121 if (type != GL_UNSIGNED_INT_24_8_OES) {
2122 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage2D(format=0x%x)", format);
2127 if (type != GL_UNSIGNED_BYTE) {
2128 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage2D(format=0x%x)", format);
2133 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage2D(format=0x%x)", format);
2137 _mesa_TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
2140 extern void GL_APIENTRY _mesa_TexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels);
2141 static void GL_APIENTRY _es_TexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels)
2144 case GL_TEXTURE_3D_OES:
2147 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glTexSubImage3DOES(target=0x%x)", target);
2152 if (type != GL_UNSIGNED_BYTE) {
2153 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage3DOES(format=0x%x)", format);
2158 if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_5_6_5) {
2159 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage3DOES(format=0x%x)", format);
2164 if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_SHORT_4_4_4_4 && type != GL_UNSIGNED_SHORT_5_5_5_1 && type != GL_UNSIGNED_INT_2_10_10_10_REV_EXT) {
2165 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage3DOES(format=0x%x)", format);
2170 case GL_LUMINANCE_ALPHA:
2171 if (type != GL_UNSIGNED_BYTE) {
2172 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage3DOES(format=0x%x)", format);
2177 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION, "glTexSubImage3DOES(format=0x%x)", format);
2181 _mesa_TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
2184 extern void GL_APIENTRY _mesa_Uniform1fARB(GLint location, GLfloat v0);
2185 #define _es_Uniform1f _mesa_Uniform1fARB
2187 extern void GL_APIENTRY _mesa_Uniform1fvARB(GLint location, GLsizei count, const GLfloat * values);
2188 #define _es_Uniform1fv _mesa_Uniform1fvARB
2190 extern void GL_APIENTRY _mesa_Uniform1iARB(GLint location, GLint v0);
2191 #define _es_Uniform1i _mesa_Uniform1iARB
2193 extern void GL_APIENTRY _mesa_Uniform1ivARB(GLint location, GLsizei count, const GLint * values);
2194 #define _es_Uniform1iv _mesa_Uniform1ivARB
2196 extern void GL_APIENTRY _mesa_Uniform2fARB(GLint location, GLfloat v0, GLfloat v1);
2197 #define _es_Uniform2f _mesa_Uniform2fARB
2199 extern void GL_APIENTRY _mesa_Uniform2fvARB(GLint location, GLsizei count, const GLfloat * values);
2200 #define _es_Uniform2fv _mesa_Uniform2fvARB
2202 extern void GL_APIENTRY _mesa_Uniform2iARB(GLint location, GLint v0, GLint v1);
2203 #define _es_Uniform2i _mesa_Uniform2iARB
2205 extern void GL_APIENTRY _mesa_Uniform2ivARB(GLint location, GLsizei count, const GLint * values);
2206 #define _es_Uniform2iv _mesa_Uniform2ivARB
2208 extern void GL_APIENTRY _mesa_Uniform3fARB(GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
2209 #define _es_Uniform3f _mesa_Uniform3fARB
2211 extern void GL_APIENTRY _mesa_Uniform3fvARB(GLint location, GLsizei count, const GLfloat * values);
2212 #define _es_Uniform3fv _mesa_Uniform3fvARB
2214 extern void GL_APIENTRY _mesa_Uniform3iARB(GLint location, GLint v0, GLint v1, GLint v2);
2215 #define _es_Uniform3i _mesa_Uniform3iARB
2217 extern void GL_APIENTRY _mesa_Uniform3ivARB(GLint location, GLsizei count, const GLint * values);
2218 #define _es_Uniform3iv _mesa_Uniform3ivARB
2220 extern void GL_APIENTRY _mesa_Uniform4fARB(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
2221 #define _es_Uniform4f _mesa_Uniform4fARB
2223 extern void GL_APIENTRY _mesa_Uniform4fvARB(GLint location, GLsizei count, const GLfloat * values);
2224 #define _es_Uniform4fv _mesa_Uniform4fvARB
2226 extern void GL_APIENTRY _mesa_Uniform4iARB(GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
2227 #define _es_Uniform4i _mesa_Uniform4iARB
2229 extern void GL_APIENTRY _mesa_Uniform4ivARB(GLint location, GLsizei count, const GLint * values);
2230 #define _es_Uniform4iv _mesa_Uniform4ivARB
2232 extern void GL_APIENTRY _mesa_UniformMatrix2fvARB(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value);
2233 #define _es_UniformMatrix2fv _mesa_UniformMatrix2fvARB
2235 extern void GL_APIENTRY _mesa_UniformMatrix3fvARB(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value);
2236 #define _es_UniformMatrix3fv _mesa_UniformMatrix3fvARB
2238 extern void GL_APIENTRY _mesa_UniformMatrix4fvARB(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value);
2239 #define _es_UniformMatrix4fv _mesa_UniformMatrix4fvARB
2241 extern GLboolean GL_APIENTRY _mesa_UnmapBufferARB(GLenum target);
2242 static GLboolean GL_APIENTRY _es_UnmapBufferOES(GLenum target)
2245 case GL_ARRAY_BUFFER:
2246 case GL_ELEMENT_ARRAY_BUFFER:
2249 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM, "glUnmapBufferOES(target=0x%x)", target);
2253 return _mesa_UnmapBufferARB(target);
2256 extern void GL_APIENTRY _mesa_UseProgramObjectARB(GLuint program);
2257 #define _es_UseProgram _mesa_UseProgramObjectARB
2259 extern void GL_APIENTRY _mesa_ValidateProgramARB(GLuint program);
2260 #define _es_ValidateProgram _mesa_ValidateProgramARB
2262 /* this function is special and is defined elsewhere */
2263 extern void GL_APIENTRY _es_VertexAttrib1f(GLuint index, GLfloat x);
2264 #define _check_VertexAttrib1f _es_VertexAttrib1f
2266 /* this function is special and is defined elsewhere */
2267 extern void GL_APIENTRY _es_VertexAttrib1fv(GLuint index, const GLfloat * v);
2268 #define _check_VertexAttrib1fv _es_VertexAttrib1fv
2270 /* this function is special and is defined elsewhere */
2271 extern void GL_APIENTRY _es_VertexAttrib2f(GLuint index, GLfloat x, GLfloat y);
2272 #define _check_VertexAttrib2f _es_VertexAttrib2f
2274 /* this function is special and is defined elsewhere */
2275 extern void GL_APIENTRY _es_VertexAttrib2fv(GLuint index, const GLfloat * v);
2276 #define _check_VertexAttrib2fv _es_VertexAttrib2fv
2278 /* this function is special and is defined elsewhere */
2279 extern void GL_APIENTRY _es_VertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z);
2280 #define _check_VertexAttrib3f _es_VertexAttrib3f
2282 /* this function is special and is defined elsewhere */
2283 extern void GL_APIENTRY _es_VertexAttrib3fv(GLuint index, const GLfloat * v);
2284 #define _check_VertexAttrib3fv _es_VertexAttrib3fv
2286 /* this function is special and is defined elsewhere */
2287 extern void GL_APIENTRY _es_VertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
2288 #define _check_VertexAttrib4f _es_VertexAttrib4f
2290 /* this function is special and is defined elsewhere */
2291 extern void GL_APIENTRY _es_VertexAttrib4fv(GLuint index, const GLfloat * v);
2292 #define _check_VertexAttrib4fv _es_VertexAttrib4fv
2294 extern void GL_APIENTRY _mesa_VertexAttribPointerARB(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * pointer);
2295 static void GL_APIENTRY _es_VertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer)
2304 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glVertexAttribPointer(size=%d)", size);
2309 case GL_UNSIGNED_BYTE:
2311 case GL_UNSIGNED_SHORT:
2316 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE, "glVertexAttribPointer(type=0x%x)", type);
2320 _mesa_VertexAttribPointerARB(index, size, type, normalized, stride, pointer);
2323 extern void GL_APIENTRY _mesa_Viewport(GLint x, GLint y, GLsizei width, GLsizei height);
2324 #define _es_Viewport _mesa_Viewport
2327 #include "glapi/glapi.h"
2329 #if FEATURE_remap_table
2331 /* define esLocalRemapTable */
2332 #include "es2api/main/dispatch.h"
2334 #define need_MESA_remap_table
2335 #include "es2api/main/remap_helper.h"
2338 init_remap_table(void)
2340 _glthread_DECLARE_STATIC_MUTEX(mutex);
2341 static GLboolean initialized = GL_FALSE;
2342 const struct gl_function_pool_remap *remap = MESA_remap_table_functions;
2345 _glthread_LOCK_MUTEX(mutex);
2347 _glthread_UNLOCK_MUTEX(mutex);
2351 for (i = 0; i < esLocalRemapTable_size; i++) {
2356 ASSERT(i == remap[i].remap_index);
2357 spec = _mesa_function_pool + remap[i].pool_index;
2359 offset = _mesa_map_function_spec(spec);
2360 esLocalRemapTable[i] = offset;
2362 initialized = GL_TRUE;
2363 _glthread_UNLOCK_MUTEX(mutex);
2366 #else /* FEATURE_remap_table */
2368 #include "es2api/main/dispatch.h"
2371 init_remap_table(void)
2375 #endif /* FEATURE_remap_table */
2377 struct _glapi_table *
2378 _mesa_create_exec_table_es2(void)
2380 struct _glapi_table *exec;
2382 exec = _mesa_alloc_dispatch_table(_gloffset_COUNT);
2388 SET_ActiveTexture(exec, _es_ActiveTexture);
2389 SET_AttachShader(exec, _es_AttachShader);
2390 SET_BindAttribLocation(exec, _es_BindAttribLocation);
2391 SET_BindBuffer(exec, _es_BindBuffer);
2392 SET_BindFramebuffer(exec, _es_BindFramebuffer);
2393 SET_BindRenderbuffer(exec, _es_BindRenderbuffer);
2394 SET_BindTexture(exec, _es_BindTexture);
2395 SET_BlendColor(exec, _es_BlendColor);
2396 SET_BlendEquation(exec, _es_BlendEquation);
2397 SET_BlendEquationSeparate(exec, _es_BlendEquationSeparate);
2398 SET_BlendFunc(exec, _es_BlendFunc);
2399 SET_BlendFuncSeparate(exec, _es_BlendFuncSeparate);
2400 SET_BufferData(exec, _es_BufferData);
2401 SET_BufferSubData(exec, _es_BufferSubData);
2402 SET_CheckFramebufferStatus(exec, _es_CheckFramebufferStatus);
2403 SET_Clear(exec, _es_Clear);
2404 SET_ClearColor(exec, _es_ClearColor);
2405 SET_ClearDepthf(exec, _es_ClearDepthf);
2406 SET_ClearStencil(exec, _es_ClearStencil);
2407 SET_ColorMask(exec, _es_ColorMask);
2408 SET_CompileShader(exec, _es_CompileShader);
2409 SET_CompressedTexImage2D(exec, _es_CompressedTexImage2D);
2410 SET_CompressedTexImage3DOES(exec, _es_CompressedTexImage3DOES);
2411 SET_CompressedTexSubImage2D(exec, _es_CompressedTexSubImage2D);
2412 SET_CompressedTexSubImage3DOES(exec, _es_CompressedTexSubImage3DOES);
2413 SET_CopyTexImage2D(exec, _es_CopyTexImage2D);
2414 SET_CopyTexSubImage2D(exec, _es_CopyTexSubImage2D);
2415 SET_CopyTexSubImage3DOES(exec, _es_CopyTexSubImage3DOES);
2416 SET_CreateProgram(exec, _es_CreateProgram);
2417 SET_CreateShader(exec, _es_CreateShader);
2418 SET_CullFace(exec, _es_CullFace);
2419 SET_DeleteBuffers(exec, _es_DeleteBuffers);
2420 SET_DeleteFramebuffers(exec, _es_DeleteFramebuffers);
2421 SET_DeleteProgram(exec, _es_DeleteProgram);
2422 SET_DeleteRenderbuffers(exec, _es_DeleteRenderbuffers);
2423 SET_DeleteShader(exec, _es_DeleteShader);
2424 SET_DeleteTextures(exec, _es_DeleteTextures);
2425 SET_DepthFunc(exec, _es_DepthFunc);
2426 SET_DepthMask(exec, _es_DepthMask);
2427 SET_DepthRangef(exec, _es_DepthRangef);
2428 SET_DetachShader(exec, _es_DetachShader);
2429 SET_Disable(exec, _es_Disable);
2430 SET_DisableVertexAttribArray(exec, _es_DisableVertexAttribArray);
2431 SET_DrawArrays(exec, _es_DrawArrays);
2432 SET_DrawElements(exec, _es_DrawElements);
2433 SET_EGLImageTargetRenderbufferStorageOES(exec, _es_EGLImageTargetRenderbufferStorageOES);
2434 SET_EGLImageTargetTexture2DOES(exec, _es_EGLImageTargetTexture2DOES);
2435 SET_Enable(exec, _es_Enable);
2436 SET_EnableVertexAttribArray(exec, _es_EnableVertexAttribArray);
2437 SET_Finish(exec, _es_Finish);
2438 SET_Flush(exec, _es_Flush);
2439 SET_FramebufferRenderbuffer(exec, _es_FramebufferRenderbuffer);
2440 SET_FramebufferTexture2D(exec, _es_FramebufferTexture2D);
2441 SET_FramebufferTexture3DOES(exec, _es_FramebufferTexture3DOES);
2442 SET_FrontFace(exec, _es_FrontFace);
2443 SET_GenBuffers(exec, _es_GenBuffers);
2444 SET_GenFramebuffers(exec, _es_GenFramebuffers);
2445 SET_GenRenderbuffers(exec, _es_GenRenderbuffers);
2446 SET_GenTextures(exec, _es_GenTextures);
2447 SET_GenerateMipmap(exec, _es_GenerateMipmap);
2448 SET_GetActiveAttrib(exec, _es_GetActiveAttrib);
2449 SET_GetActiveUniform(exec, _es_GetActiveUniform);
2450 SET_GetAttachedShaders(exec, _es_GetAttachedShaders);
2451 SET_GetAttribLocation(exec, _es_GetAttribLocation);
2452 SET_GetBooleanv(exec, _es_GetBooleanv);
2453 SET_GetBufferParameteriv(exec, _es_GetBufferParameteriv);
2454 SET_GetBufferPointervOES(exec, _es_GetBufferPointervOES);
2455 SET_GetError(exec, _es_GetError);
2456 SET_GetFloatv(exec, _es_GetFloatv);
2457 SET_GetFramebufferAttachmentParameteriv(exec, _es_GetFramebufferAttachmentParameteriv);
2458 SET_GetIntegerv(exec, _es_GetIntegerv);
2459 SET_GetProgramInfoLog(exec, _es_GetProgramInfoLog);
2460 SET_GetProgramiv(exec, _es_GetProgramiv);
2461 SET_GetRenderbufferParameteriv(exec, _es_GetRenderbufferParameteriv);
2462 SET_GetShaderInfoLog(exec, _es_GetShaderInfoLog);
2463 SET_GetShaderPrecisionFormat(exec, _es_GetShaderPrecisionFormat);
2464 SET_GetShaderSource(exec, _es_GetShaderSource);
2465 SET_GetShaderiv(exec, _es_GetShaderiv);
2466 SET_GetString(exec, _es_GetString);
2467 SET_GetTexParameterfv(exec, _es_GetTexParameterfv);
2468 SET_GetTexParameteriv(exec, _es_GetTexParameteriv);
2469 SET_GetUniformLocation(exec, _es_GetUniformLocation);
2470 SET_GetUniformfv(exec, _es_GetUniformfv);
2471 SET_GetUniformiv(exec, _es_GetUniformiv);
2472 SET_GetVertexAttribPointerv(exec, _es_GetVertexAttribPointerv);
2473 SET_GetVertexAttribfv(exec, _es_GetVertexAttribfv);
2474 SET_GetVertexAttribiv(exec, _es_GetVertexAttribiv);
2475 SET_Hint(exec, _es_Hint);
2476 SET_IsBuffer(exec, _es_IsBuffer);
2477 SET_IsEnabled(exec, _es_IsEnabled);
2478 SET_IsFramebuffer(exec, _es_IsFramebuffer);
2479 SET_IsProgram(exec, _es_IsProgram);
2480 SET_IsRenderbuffer(exec, _es_IsRenderbuffer);
2481 SET_IsShader(exec, _es_IsShader);
2482 SET_IsTexture(exec, _es_IsTexture);
2483 SET_LineWidth(exec, _es_LineWidth);
2484 SET_LinkProgram(exec, _es_LinkProgram);
2485 SET_MapBufferOES(exec, _es_MapBufferOES);
2486 SET_MultiDrawArraysEXT(exec, _es_MultiDrawArraysEXT);
2487 SET_MultiDrawElementsEXT(exec, _es_MultiDrawElementsEXT);
2488 SET_PixelStorei(exec, _es_PixelStorei);
2489 SET_PolygonOffset(exec, _es_PolygonOffset);
2490 SET_ReadPixels(exec, _es_ReadPixels);
2491 SET_ReleaseShaderCompiler(exec, _es_ReleaseShaderCompiler);
2492 SET_RenderbufferStorage(exec, _check_RenderbufferStorage);
2493 SET_SampleCoverage(exec, _es_SampleCoverage);
2494 SET_Scissor(exec, _es_Scissor);
2495 SET_ShaderBinary(exec, _es_ShaderBinary);
2496 SET_ShaderSource(exec, _es_ShaderSource);
2497 SET_StencilFunc(exec, _es_StencilFunc);
2498 SET_StencilFuncSeparate(exec, _es_StencilFuncSeparate);
2499 SET_StencilMask(exec, _es_StencilMask);
2500 SET_StencilMaskSeparate(exec, _es_StencilMaskSeparate);
2501 SET_StencilOp(exec, _es_StencilOp);
2502 SET_StencilOpSeparate(exec, _es_StencilOpSeparate);
2503 SET_TexImage2D(exec, _es_TexImage2D);
2504 SET_TexImage3DOES(exec, _es_TexImage3DOES);
2505 SET_TexParameterf(exec, _es_TexParameterf);
2506 SET_TexParameterfv(exec, _es_TexParameterfv);
2507 SET_TexParameteri(exec, _es_TexParameteri);
2508 SET_TexParameteriv(exec, _es_TexParameteriv);
2509 SET_TexSubImage2D(exec, _es_TexSubImage2D);
2510 SET_TexSubImage3DOES(exec, _es_TexSubImage3DOES);
2511 SET_Uniform1f(exec, _es_Uniform1f);
2512 SET_Uniform1fv(exec, _es_Uniform1fv);
2513 SET_Uniform1i(exec, _es_Uniform1i);
2514 SET_Uniform1iv(exec, _es_Uniform1iv);
2515 SET_Uniform2f(exec, _es_Uniform2f);
2516 SET_Uniform2fv(exec, _es_Uniform2fv);
2517 SET_Uniform2i(exec, _es_Uniform2i);
2518 SET_Uniform2iv(exec, _es_Uniform2iv);
2519 SET_Uniform3f(exec, _es_Uniform3f);
2520 SET_Uniform3fv(exec, _es_Uniform3fv);
2521 SET_Uniform3i(exec, _es_Uniform3i);
2522 SET_Uniform3iv(exec, _es_Uniform3iv);
2523 SET_Uniform4f(exec, _es_Uniform4f);
2524 SET_Uniform4fv(exec, _es_Uniform4fv);
2525 SET_Uniform4i(exec, _es_Uniform4i);
2526 SET_Uniform4iv(exec, _es_Uniform4iv);
2527 SET_UniformMatrix2fv(exec, _es_UniformMatrix2fv);
2528 SET_UniformMatrix3fv(exec, _es_UniformMatrix3fv);
2529 SET_UniformMatrix4fv(exec, _es_UniformMatrix4fv);
2530 SET_UnmapBufferOES(exec, _es_UnmapBufferOES);
2531 SET_UseProgram(exec, _es_UseProgram);
2532 SET_ValidateProgram(exec, _es_ValidateProgram);
2533 SET_VertexAttrib1f(exec, _check_VertexAttrib1f);
2534 SET_VertexAttrib1fv(exec, _check_VertexAttrib1fv);
2535 SET_VertexAttrib2f(exec, _check_VertexAttrib2f);
2536 SET_VertexAttrib2fv(exec, _check_VertexAttrib2fv);
2537 SET_VertexAttrib3f(exec, _check_VertexAttrib3f);
2538 SET_VertexAttrib3fv(exec, _check_VertexAttrib3fv);
2539 SET_VertexAttrib4f(exec, _check_VertexAttrib4f);
2540 SET_VertexAttrib4fv(exec, _check_VertexAttrib4fv);
2541 SET_VertexAttribPointer(exec, _es_VertexAttribPointer);
2542 SET_Viewport(exec, _es_Viewport);
2547 #endif /* FEATURE_ES2 */