OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "GrGLAssembleInterface.h" | 10 #include "GrGLAssembleInterface.h" |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
443 GET_PROC_SUFFIX(DisableVertexArrayAttrib, EXT); | 443 GET_PROC_SUFFIX(DisableVertexArrayAttrib, EXT); |
444 GET_PROC_SUFFIX(GetVertexArrayIntegerv, EXT); | 444 GET_PROC_SUFFIX(GetVertexArrayIntegerv, EXT); |
445 GET_PROC_SUFFIX(GetVertexArrayPointerv, EXT); | 445 GET_PROC_SUFFIX(GetVertexArrayPointerv, EXT); |
446 GET_PROC_SUFFIX(GetVertexArrayIntegeri_v, EXT); | 446 GET_PROC_SUFFIX(GetVertexArrayIntegeri_v, EXT); |
447 GET_PROC_SUFFIX(GetVertexArrayPointeri_v, EXT); | 447 GET_PROC_SUFFIX(GetVertexArrayPointeri_v, EXT); |
448 GET_PROC_SUFFIX(MapNamedBufferRange, EXT); | 448 GET_PROC_SUFFIX(MapNamedBufferRange, EXT); |
449 GET_PROC_SUFFIX(FlushMappedNamedBufferRange, EXT); | 449 GET_PROC_SUFFIX(FlushMappedNamedBufferRange, EXT); |
450 } | 450 } |
451 } | 451 } |
452 | 452 |
453 if (glVer >= GR_GL_VER(4,3)) { | |
454 GET_PROC(FramebufferParameteri); | |
455 } | |
456 if (extensions.has("GL_NV_sample_locations")) { | |
457 GET_PROC_SUFFIX(NamedFramebufferSampleLocationsfv, NV); | |
458 GET_PROC_SUFFIX(GetMultisamplefv, NV); | |
Chris Dalton
2015/09/22 08:35:24
For glGetMultisamplefv we should check for GL vers
| |
459 } | |
460 | |
453 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_KHR_debug")) { | 461 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_KHR_debug")) { |
454 // KHR_debug defines these methods to have no suffix in an OpenGL (not E S) context. | 462 // KHR_debug defines these methods to have no suffix in an OpenGL (not E S) context. |
455 GET_PROC(DebugMessageControl); | 463 GET_PROC(DebugMessageControl); |
456 GET_PROC(DebugMessageInsert); | 464 GET_PROC(DebugMessageInsert); |
457 GET_PROC(DebugMessageCallback); | 465 GET_PROC(DebugMessageCallback); |
458 GET_PROC(GetDebugMessageLog); | 466 GET_PROC(GetDebugMessageLog); |
459 GET_PROC(PushDebugGroup); | 467 GET_PROC(PushDebugGroup); |
460 GET_PROC(PopDebugGroup); | 468 GET_PROC(PopDebugGroup); |
461 GET_PROC(ObjectLabel); | 469 GET_PROC(ObjectLabel); |
462 } | 470 } |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
751 GET_PROC_SUFFIX(PushDebugGroup, KHR); | 759 GET_PROC_SUFFIX(PushDebugGroup, KHR); |
752 GET_PROC_SUFFIX(PopDebugGroup, KHR); | 760 GET_PROC_SUFFIX(PopDebugGroup, KHR); |
753 GET_PROC_SUFFIX(ObjectLabel, KHR); | 761 GET_PROC_SUFFIX(ObjectLabel, KHR); |
754 } | 762 } |
755 | 763 |
756 interface->fStandard = kGLES_GrGLStandard; | 764 interface->fStandard = kGLES_GrGLStandard; |
757 interface->fExtensions.swap(&extensions); | 765 interface->fExtensions.swap(&extensions); |
758 | 766 |
759 return interface; | 767 return interface; |
760 } | 768 } |
OLD | NEW |