diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp index 50c0edba45..951f485282 100644 --- a/src/gpu/gl/GrGLGpu.cpp +++ b/src/gpu/gl/GrGLGpu.cpp @@ -1906,14 +1906,8 @@ void GrGLGpu::clear(const GrFixedClip& clip, GrColor color, GrRenderTarget* targ if (this->glCaps().clearToBoundaryValuesIsBroken() && (1 == r || 0 == r) && (1 == g || 0 == g) && (1 == b || 0 == b) && (1 == a || 0 == a)) { -#ifdef SK_BUILD_FOR_ANDROID - // Android doesn't have std::nextafter but has nextafter. static const GrGLfloat safeAlpha1 = nextafter(1.f, 2.f); static const GrGLfloat safeAlpha0 = nextafter(0.f, -1.f); -#else - static const GrGLfloat safeAlpha1 = std::nextafter(1.f, 2.f); - static const GrGLfloat safeAlpha0 = std::nextafter(0.f, -1.f); -#endif a = (1 == a) ? safeAlpha1 : safeAlpha0; } GL_CALL(ClearColor(r, g, b, a));