aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLProgram.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/gl/GrGLProgram.cpp')
-rw-r--r--src/gpu/gl/GrGLProgram.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLProgram.cpp b/src/gpu/gl/GrGLProgram.cpp
index ec08bf4634..8277d6eb4e 100644
--- a/src/gpu/gl/GrGLProgram.cpp
+++ b/src/gpu/gl/GrGLProgram.cpp
@@ -92,7 +92,12 @@ void GrGLProgram::setData(const GrPrimitiveProcessor& primProc, const GrPipeline
const GrXferProcessor& xp = pipeline.getXferProcessor();
SkIPoint offset;
- GrTexture* dstTexture = pipeline.dstTexture(&offset);
+ GrTextureProxy* dstProxy = pipeline.dstTextureProxy(&offset);
+ GrTexture* dstTexture = nullptr;
+ if (dstProxy) {
+ dstTexture = dstProxy->priv().peekTexture();
+ }
+
fXferProcessor->setData(fProgramDataManager, xp, dstTexture, offset);
if (dstTexture) {
fGpu->bindTexture(nextTexSamplerIdx++, GrSamplerParams::ClampNoFilter(), true,