From 76e8c7c3ec5584abe5d2c6f25031b7e696d6e064 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Tue, 7 Nov 2017 23:15:46 +0000 Subject: Revert "added a missing programBinarySupport check" This reverts commit 4e001d898afda5efdb189dc34555c6cafa3ce35c. Reason for revert: valgrind asan failures Original change's description: > added a missing programBinarySupport check > > Bug: skia: > Change-Id: Ib76a683316e420a76ef69dce4182d73b5e0ee28a > Reviewed-on: https://skia-review.googlesource.com/68214 > Reviewed-by: Stan Iliev > Commit-Queue: Ethan Nicholas TBR=ethannicholas@google.com,stani@google.com Change-Id: I49e05a6d930e6508f0bae36c5370e089f2978aa3 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: skia: Reviewed-on: https://skia-review.googlesource.com/68281 Reviewed-by: Greg Daniel Commit-Queue: Greg Daniel --- src/gpu/gl/builders/GrGLProgramBuilder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gpu/gl/builders/GrGLProgramBuilder.cpp') diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp index 4bc4202297..c9bc8f8910 100644 --- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp +++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp @@ -135,8 +135,7 @@ GrGLProgram* GrGLProgramBuilder::finalize() { return nullptr; } - if (this->gpu()->glCaps().programBinarySupport() && - this->gpu()->getContext()->getPersistentCache()) { + if (this->gpu()->getContext()->getPersistentCache()) { GL_CALL(ProgramParameteri(programID, GR_GL_PROGRAM_BINARY_RETRIEVABLE_HINT, GR_GL_TRUE)); } -- cgit v1.2.3