Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: ppapi/tests/test_graphics_3d.cc

Issue 397183002: Add PPAPI interface for OpenGL ES 2.0 Vertex Array Objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/ppb_opengles2_shared.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « ppapi/shared_impl/ppb_opengles2_shared.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698