diff options
author | 2018-07-11 13:59:03 -0400 | |
---|---|---|
committer | 2018-07-11 18:30:38 +0000 | |
commit | ad77dce5e145b684b826238b8c65d89f6cce60a6 (patch) | |
tree | a74e30e5c39cc990b1d4296dd1f42528d0b7a46a /src/gpu/gl/GrGLCaps.cpp | |
parent | 37329b33326ef50e4279404df10037dccf5d9cba (diff) |
fix for persistent shader cache
Bug: skia:
Change-Id: I43b4dc58ab4dde3fa8140de0d73134c38f7d79db
Reviewed-on: https://skia-review.googlesource.com/140566
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLCaps.cpp')
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index 5cb23427c5..f120b6d09d 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -600,10 +600,9 @@ void GrGLCaps::init(const GrContextOptions& contextOptions, } if (fProgramBinarySupport) { GrGLint count; - GR_GL_GetIntegerv(gli, GR_GL_NUM_SHADER_BINARY_FORMATS, &count); + GR_GL_GetIntegerv(gli, GR_GL_NUM_PROGRAM_BINARY_FORMATS, &count); fProgramBinarySupport = count > 0; } - // Requires fTextureRedSupport, fTextureSwizzleSupport, msaa support, ES compatibility have // already been detected. this->initConfigTable(contextOptions, ctxInfo, gli, shaderCaps); |