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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 } | 409 } |
410 | 410 |
411 | 411 |
412 // glGetStringi was added in version 3.0 of both desktop and ES. | 412 // glGetStringi was added in version 3.0 of both desktop and ES. |
413 if (glVer >= GR_GL_VER(3, 0)) { | 413 if (glVer >= GR_GL_VER(3, 0)) { |
414 if (nullptr == fFunctions.fGetStringi) { | 414 if (nullptr == fFunctions.fGetStringi) { |
415 RETURN_FALSE_INTERFACE | 415 RETURN_FALSE_INTERFACE |
416 } | 416 } |
417 } | 417 } |
418 | 418 |
| 419 // glVertexAttribIPointer was added in version 3.0 of both desktop and ES. |
| 420 if (glVer >= GR_GL_VER(3, 0)) { |
| 421 if (NULL == fFunctions.fVertexAttribIPointer) { |
| 422 RETURN_FALSE_INTERFACE |
| 423 } |
| 424 } |
| 425 |
419 if (kGL_GrGLStandard == fStandard) { | 426 if (kGL_GrGLStandard == fStandard) { |
420 if (glVer >= GR_GL_VER(3, 0) || fExtensions.has("GL_ARB_vertex_array_obj
ect")) { | 427 if (glVer >= GR_GL_VER(3, 0) || fExtensions.has("GL_ARB_vertex_array_obj
ect")) { |
421 if (nullptr == fFunctions.fBindVertexArray || | 428 if (nullptr == fFunctions.fBindVertexArray || |
422 nullptr == fFunctions.fDeleteVertexArrays || | 429 nullptr == fFunctions.fDeleteVertexArrays || |
423 nullptr == fFunctions.fGenVertexArrays) { | 430 nullptr == fFunctions.fGenVertexArrays) { |
424 RETURN_FALSE_INTERFACE | 431 RETURN_FALSE_INTERFACE |
425 } | 432 } |
426 } | 433 } |
427 } else { | 434 } else { |
428 if (glVer >= GR_GL_VER(3,0) || fExtensions.has("GL_OES_vertex_array_obje
ct")) { | 435 if (glVer >= GR_GL_VER(3,0) || fExtensions.has("GL_OES_vertex_array_obje
ct")) { |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 | 755 |
749 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base"
)) { | 756 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base"
)) { |
750 if (nullptr == fFunctions.fEGLCreateImage || | 757 if (nullptr == fFunctions.fEGLCreateImage || |
751 nullptr == fFunctions.fEGLDestroyImage) { | 758 nullptr == fFunctions.fEGLDestroyImage) { |
752 RETURN_FALSE_INTERFACE | 759 RETURN_FALSE_INTERFACE |
753 } | 760 } |
754 } | 761 } |
755 | 762 |
756 return true; | 763 return true; |
757 } | 764 } |
OLD | NEW |