diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/gl/GrGLAssembleInterface.cpp | 9 | ||||
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 13 | ||||
-rw-r--r-- | src/gpu/gl/GrGLGpu.cpp | 14 | ||||
-rw-r--r-- | src/gpu/gl/GrGLInterface.cpp | 7 |
4 files changed, 6 insertions, 37 deletions
diff --git a/src/gpu/gl/GrGLAssembleInterface.cpp b/src/gpu/gl/GrGLAssembleInterface.cpp index ce439ec63f..c4d3e13179 100644 --- a/src/gpu/gl/GrGLAssembleInterface.cpp +++ b/src/gpu/gl/GrGLAssembleInterface.cpp @@ -269,10 +269,6 @@ const GrGLInterface* GrGLAssembleGLInterface(void* ctx, GrGLGetProc get) { return nullptr; } - if (glVer >= GR_GL_VER(4,3)) { - GET_PROC(FramebufferParameteri); - } - if (extensions.has("GL_NV_path_rendering")) { GET_PROC_SUFFIX(MatrixLoadf, EXT); GET_PROC_SUFFIX(MatrixLoadIdentity, EXT); @@ -628,11 +624,6 @@ const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get) { GET_PROC(CheckFramebufferStatus); GET_PROC(DeleteFramebuffers); GET_PROC(DeleteRenderbuffers); - - if (version >= GR_GL_VER(3,1)) { - GET_PROC(FramebufferParameteri); - } - GET_PROC(FramebufferRenderbuffer); GET_PROC(FramebufferTexture2D); diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index b02f387afe..883a809f4d 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -301,16 +301,9 @@ void GrGLCaps::init(const GrContextOptions& contextOptions, ctxInfo.hasExtension("GL_OES_standard_derivatives"); } - if (kGL_GrGLStandard == standard) { - glslCaps->fProgrammableSampleLocationsSupport = - ctxInfo.version() >= GR_GL_VER(4, 3) && - (ctxInfo.hasExtension("GL_ARB_sample_locations") || - ctxInfo.hasExtension("GL_NV_sample_locations")); - } else { - glslCaps->fProgrammableSampleLocationsSupport = - ctxInfo.version() >= GR_GL_VER(3, 1) && - ctxInfo.hasExtension("GL_NV_sample_locations"); - } + glslCaps->fProgrammableSampleLocationsSupport = + ctxInfo.hasExtension("GL_NV_sample_locations") || + ctxInfo.hasExtension("GL_ARB_sample_locations"); /************************************************************************** * GrCaps fields diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp index 72262abed3..babc96615c 100644 --- a/src/gpu/gl/GrGLGpu.cpp +++ b/src/gpu/gl/GrGLGpu.cpp @@ -2043,17 +2043,9 @@ void GrGLGpu::setColocatedSampleLocations(GrRenderTarget* rt, bool useColocatedS return; } - if (kGL_GrGLStandard == this->glStandard() && this->glVersion() >= GR_GL_VER(4,5)) { - GL_CALL(NamedFramebufferParameteri(target->renderFBOID(), - GR_GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS, - useColocatedSampleLocations)); - } else { - GL_CALL(BindFramebuffer(GR_GL_FRAMEBUFFER, target->renderFBOID())); - GL_CALL(FramebufferParameteri(GR_GL_FRAMEBUFFER, - GR_GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS, - useColocatedSampleLocations)); - fHWBoundRenderTargetUniqueID = SK_InvalidUniqueID; - } + GL_CALL(NamedFramebufferParameteri(target->renderFBOID(), + GR_GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS, + useColocatedSampleLocations)); target->flagAsUsingColocatedSampleLocations(useColocatedSampleLocations); } diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp index fafd17cd0b..71de9521c2 100644 --- a/src/gpu/gl/GrGLInterface.cpp +++ b/src/gpu/gl/GrGLInterface.cpp @@ -713,13 +713,6 @@ bool GrGLInterface::validate() const { } } - if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,3)) || - (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) { - if (nullptr == fFunctions.fFramebufferParameteri) { - RETURN_FALSE_INTERFACE - } - } - if (kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,5)) { if (nullptr == fFunctions.fNamedFramebufferParameteri) { RETURN_FALSE_INTERFACE |