From 05d5a13fea6246648de7e41358ed338d53c85ea2 Mon Sep 17 00:00:00 2001 From: Ethan Nicholas Date: Fri, 15 Sep 2017 11:42:17 -0400 Subject: Revert "Revert "Switched highp float to highfloat and mediump float to half."" This reverts commit 1d816b92bb7cf2258007f3f74ffd143b89f25d01. Bug: skia: Change-Id: I388b5e5e9bf619db48297a80c9a80c039f26c9f1 Reviewed-on: https://skia-review.googlesource.com/46464 Reviewed-by: Brian Salomon Commit-Queue: Ethan Nicholas --- src/gpu/gl/builders/GrGLProgramBuilder.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gpu/gl/builders') diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp index b7d31203aa..31d20f0421 100644 --- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp +++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp @@ -139,6 +139,9 @@ GrGLProgram* GrGLProgramBuilder::finalize() { return nullptr; } + if (fFS.fForceHighPrecision) { + settings.fForceHighPrecision = true; + } if (!this->compileAndAttachShaders(fFS, programID, GR_GL_FRAGMENT_SHADER, &shadersToDelete, settings, &inputs)) { this->cleanupProgram(programID, shadersToDelete); -- cgit v1.2.3