diff options
Diffstat (limited to 'src/gpu/gl/GrGLGpu.cpp')
-rw-r--r-- | src/gpu/gl/GrGLGpu.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp index e04a40d8ab..ea1bfcd726 100644 --- a/src/gpu/gl/GrGLGpu.cpp +++ b/src/gpu/gl/GrGLGpu.cpp @@ -3008,7 +3008,8 @@ bool GrGLGpu::createCopyProgram(GrTexture* srcTex) { int progIdx = TextureToCopyProgramIdx(srcTex); const GrShaderCaps* shaderCaps = this->caps()->shaderCaps(); - GrSLType samplerType = srcTex->texturePriv().samplerType(); + GrSLType samplerType = + GrSLCombinedSamplerTypeForTextureType(srcTex->texturePriv().textureType()); if (!fCopyProgramArrayBuffer) { static const GrGLfloat vdata[] = { @@ -4126,7 +4127,7 @@ sk_sp<GrSemaphore> GrGLGpu::prepareTextureForCrossContextUsage(GrTexture* textur } int GrGLGpu::TextureToCopyProgramIdx(GrTexture* texture) { - switch (texture->texturePriv().samplerType()) { + switch (GrSLCombinedSamplerTypeForTextureType(texture->texturePriv().textureType())) { case kTexture2DSampler_GrSLType: return 0; case kTexture2DRectSampler_GrSLType: |