| 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..ebd52afc03b3e0063a9f5e2a645512c778ddccb6 100644
|
| --- a/ppapi/tests/test_graphics_3d.cc
|
| +++ b/ppapi/tests/test_graphics_3d.cc
|
| @@ -114,12 +114,11 @@ std::string TestGraphics3D::TestExtensionsGL() {
|
| ASSERT_NE(NULL, glGetString(GL_VERSION));
|
| const char* ext = reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS));
|
| if (strstr(ext, "GL_EXT_occlusion_query_boolean")) {
|
| - GLuint a_query;
|
| - GLboolean is_a_query;
|
| + GLuint a_query = 0;
|
| glGenQueriesEXT(1, &a_query);
|
| ASSERT_NE(0, a_query);
|
| glBeginQueryEXT(GL_ANY_SAMPLES_PASSED_EXT, a_query);
|
| - is_a_query = glIsQueryEXT(a_query);
|
| + GLboolean is_a_query = glIsQueryEXT(a_query);
|
| ASSERT_EQ(is_a_query, GL_TRUE);
|
| glEndQueryEXT(GL_ANY_SAMPLES_PASSED_EXT);
|
| glDeleteQueriesEXT(1, &a_query);
|
| @@ -127,6 +126,16 @@ 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 = 0;
|
| + glGenVertexArraysOES(1, &a_vertex_array);
|
| + ASSERT_NE(0, a_vertex_array);
|
| + glBindVertexArrayOES(a_vertex_array);
|
| + GLboolean 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);
|
|
|