Index: ppapi/lib/gl/gles2/gles2.c |
diff --git a/ppapi/lib/gl/gles2/gles2.c b/ppapi/lib/gl/gles2/gles2.c |
index 60922cd722cfc4335f0e8882297ef2b76c5bed8c..ca0e513a8db204add278fe021ce5069ff2a29e42 100644 |
--- a/ppapi/lib/gl/gles2/gles2.c |
+++ b/ppapi/lib/gl/gles2/gles2.c |
@@ -967,6 +967,31 @@ glGetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) { |
ext->GetQueryObjectuivEXT(glGetCurrentContextPPAPI(), id, pname, params); |
} |
+void GL_APIENTRY glGenVertexArraysOES(GLsizei n, GLuint* arrays) { |
+ const struct PPB_OpenGLES2VertexArray* ext = glGetVertexArrayInterfacePPAPI(); |
+ if (ext) |
+ ext->GenVertexArraysOES(glGetCurrentContextPPAPI(), n, arrays); |
+} |
+ |
+void GL_APIENTRY glDeleteVertexArraysOES(GLsizei n, const GLuint* arrays) { |
+ const struct PPB_OpenGLES2VertexArray* ext = glGetVertexArrayInterfacePPAPI(); |
+ if (ext) |
+ ext->DeleteVertexArraysOES(glGetCurrentContextPPAPI(), n, arrays); |
+} |
+ |
+GLboolean GL_APIENTRY glIsVertexArrayOES(GLuint array) { |
+ const struct PPB_OpenGLES2VertexArray* ext = glGetVertexArrayInterfacePPAPI(); |
+ if (ext) |
+ return ext->IsVertexArrayOES(glGetCurrentContextPPAPI(), array); |
+ return 0; |
+} |
+ |
+void GL_APIENTRY glBindVertexArrayOES(GLuint array) { |
+ const struct PPB_OpenGLES2VertexArray* ext = glGetVertexArrayInterfacePPAPI(); |
+ if (ext) |
+ ext->BindVertexArrayOES(glGetCurrentContextPPAPI(), array); |
+} |
+ |
GLboolean GL_APIENTRY glEnableFeatureCHROMIUM(const char* feature) { |
const struct PPB_OpenGLES2ChromiumEnableFeature* ext = |
glGetChromiumEnableFeatureInterfacePPAPI(); |