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

Side by Side Diff: src/gpu/gl/GrGLInterface.cpp

Issue 12447003: Validate that VAO functions are present in ES2 interfaces and add bit to caps indicating VAO suppor… (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #include "gl/GrGLInterface.h" 9 #include "gl/GrGLInterface.h"
10 #include "gl/GrGLExtensions.h" 10 #include "gl/GrGLExtensions.h"
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 351
352 if (kDesktop_GrGLBinding == binding) { 352 if (kDesktop_GrGLBinding == binding) {
353 if (glVer >= GR_GL_VER(3, 0) || extensions.has("GL_ARB_vertex_array_obje ct")) { 353 if (glVer >= GR_GL_VER(3, 0) || extensions.has("GL_ARB_vertex_array_obje ct")) {
354 if (NULL == fBindVertexArray || 354 if (NULL == fBindVertexArray ||
355 NULL == fDeleteVertexArrays || 355 NULL == fDeleteVertexArrays ||
356 NULL == fGenVertexArrays) { 356 NULL == fGenVertexArrays) {
357 return false; 357 return false;
358 } 358 }
359 } 359 }
360 } else { 360 } else {
361 #if 0 // Remove this #if once Chromium interfaces set these pointers
362 if (extensions.has("GL_OES_vertex_array_object")) { 361 if (extensions.has("GL_OES_vertex_array_object")) {
363 if (NULL == fBindVertexArray || 362 if (NULL == fBindVertexArray ||
364 NULL == fDeleteVertexArrays || 363 NULL == fDeleteVertexArrays ||
365 NULL == fGenVertexArrays) { 364 NULL == fGenVertexArrays) {
366 return false; 365 return false;
367 } 366 }
368 } 367 }
369 #endif
370 } 368 }
371 369
372 return true; 370 return true;
373 } 371 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698