OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |