Index: ppapi/tests/test_graphics_3d.cc |
diff --git a/ppapi/tests/test_graphics_3d.cc b/ppapi/tests/test_graphics_3d.cc |
index ddf5512f6e835e4a5388cafb61a14f55f0f005eb..47b6dd61ce9c31a4f791b88a8af940a4aea844cb 100644 |
--- a/ppapi/tests/test_graphics_3d.cc |
+++ b/ppapi/tests/test_graphics_3d.cc |
@@ -127,6 +127,17 @@ std::string TestGraphics3D::TestExtensionsGL() { |
if (strstr(ext, "GL_ANGLE_instanced_arrays")) { |
glDrawArraysInstancedANGLE(GL_TRIANGLE_STRIP, 0, 0, 0); |
} |
+ if (strstr(ext, "GL_OES_vertex_array_object")) { |
+ GLuint a_vertex_array; |
piman
2014/07/16 23:32:40
nit: = 0
Zachary Kuznia
2014/07/17 04:41:28
Done. Fixed the one above, too.
|
+ GLboolean is_a_vertex_array; |
piman
2014/07/16 23:32:40
nit: declare on first use
Zachary Kuznia
2014/07/17 04:41:27
Done.
|
+ glGenVertexArraysOES(1, &a_vertex_array); |
+ ASSERT_NE(0, a_vertex_array); |
+ glBindVertexArrayOES(a_vertex_array); |
+ is_a_vertex_array = glIsVertexArrayOES(a_vertex_array); |
+ ASSERT_EQ(is_a_vertex_array, GL_TRUE); |
+ glBindVertexArrayOES(0); |
+ glDeleteVertexArraysOES(1, &a_vertex_array); |
+ } |
glSetCurrentContextPPAPI(kInvalidContext); |
int32_t rv = SwapBuffersSync(&context); |