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 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 nullptr == fFunctions.fGetVertexArrayPointerv || | 706 nullptr == fFunctions.fGetVertexArrayPointerv || |
707 nullptr == fFunctions.fGetVertexArrayIntegeri_v || | 707 nullptr == fFunctions.fGetVertexArrayIntegeri_v || |
708 nullptr == fFunctions.fGetVertexArrayPointeri_v || | 708 nullptr == fFunctions.fGetVertexArrayPointeri_v || |
709 nullptr == fFunctions.fMapNamedBufferRange || | 709 nullptr == fFunctions.fMapNamedBufferRange || |
710 nullptr == fFunctions.fFlushMappedNamedBufferRange) { | 710 nullptr == fFunctions.fFlushMappedNamedBufferRange) { |
711 RETURN_FALSE_INTERFACE | 711 RETURN_FALSE_INTERFACE |
712 } | 712 } |
713 } | 713 } |
714 } | 714 } |
715 | 715 |
716 if (kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,5)) { | |
717 if (nullptr == fFunctions.fNamedFramebufferParameteri) { | |
718 RETURN_FALSE_INTERFACE | |
719 } | |
720 } | |
721 | |
722 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,3)) || | 716 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,3)) || |
723 fExtensions.has("GL_KHR_debug")) { | 717 fExtensions.has("GL_KHR_debug")) { |
724 if (nullptr == fFunctions.fDebugMessageControl || | 718 if (nullptr == fFunctions.fDebugMessageControl || |
725 nullptr == fFunctions.fDebugMessageInsert || | 719 nullptr == fFunctions.fDebugMessageInsert || |
726 nullptr == fFunctions.fDebugMessageCallback || | 720 nullptr == fFunctions.fDebugMessageCallback || |
727 nullptr == fFunctions.fGetDebugMessageLog || | 721 nullptr == fFunctions.fGetDebugMessageLog || |
728 nullptr == fFunctions.fPushDebugGroup || | 722 nullptr == fFunctions.fPushDebugGroup || |
729 nullptr == fFunctions.fPopDebugGroup || | 723 nullptr == fFunctions.fPopDebugGroup || |
730 nullptr == fFunctions.fObjectLabel) { | 724 nullptr == fFunctions.fObjectLabel) { |
731 RETURN_FALSE_INTERFACE | 725 RETURN_FALSE_INTERFACE |
732 } | 726 } |
733 } | 727 } |
734 | 728 |
735 return true; | 729 return true; |
736 } | 730 } |
OLD | NEW |