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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 nullptr == fFunctions.fGetVertexArrayPointerv || | 694 nullptr == fFunctions.fGetVertexArrayPointerv || |
695 nullptr == fFunctions.fGetVertexArrayIntegeri_v || | 695 nullptr == fFunctions.fGetVertexArrayIntegeri_v || |
696 nullptr == fFunctions.fGetVertexArrayPointeri_v || | 696 nullptr == fFunctions.fGetVertexArrayPointeri_v || |
697 nullptr == fFunctions.fMapNamedBufferRange || | 697 nullptr == fFunctions.fMapNamedBufferRange || |
698 nullptr == fFunctions.fFlushMappedNamedBufferRange) { | 698 nullptr == fFunctions.fFlushMappedNamedBufferRange) { |
699 RETURN_FALSE_INTERFACE | 699 RETURN_FALSE_INTERFACE |
700 } | 700 } |
701 } | 701 } |
702 } | 702 } |
703 | 703 |
| 704 if (kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,5)) { |
| 705 if (nullptr == fFunctions.fNamedFramebufferParameteri) { |
| 706 RETURN_FALSE_INTERFACE |
| 707 } |
| 708 } |
| 709 |
704 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,3)) || | 710 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,3)) || |
705 fExtensions.has("GL_KHR_debug")) { | 711 fExtensions.has("GL_KHR_debug")) { |
706 if (nullptr == fFunctions.fDebugMessageControl || | 712 if (nullptr == fFunctions.fDebugMessageControl || |
707 nullptr == fFunctions.fDebugMessageInsert || | 713 nullptr == fFunctions.fDebugMessageInsert || |
708 nullptr == fFunctions.fDebugMessageCallback || | 714 nullptr == fFunctions.fDebugMessageCallback || |
709 nullptr == fFunctions.fGetDebugMessageLog || | 715 nullptr == fFunctions.fGetDebugMessageLog || |
710 nullptr == fFunctions.fPushDebugGroup || | 716 nullptr == fFunctions.fPushDebugGroup || |
711 nullptr == fFunctions.fPopDebugGroup || | 717 nullptr == fFunctions.fPopDebugGroup || |
712 nullptr == fFunctions.fObjectLabel) { | 718 nullptr == fFunctions.fObjectLabel) { |
713 RETURN_FALSE_INTERFACE | 719 RETURN_FALSE_INTERFACE |
714 } | 720 } |
715 } | 721 } |
716 | 722 |
717 return true; | 723 return true; |
718 } | 724 } |
OLD | NEW |