aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTargetContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrRenderTargetContext.h')
-rw-r--r--src/gpu/GrRenderTargetContext.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/GrRenderTargetContext.h b/src/gpu/GrRenderTargetContext.h
index cb4d702c91..bcc5323c79 100644
--- a/src/gpu/GrRenderTargetContext.h
+++ b/src/gpu/GrRenderTargetContext.h
@@ -324,7 +324,10 @@ public:
GrRenderTarget* accessRenderTarget() {
// TODO: usage of this entry point needs to be reduced and potentially eliminated
// since it ends the deferral of the GrRenderTarget's allocation
- return fRenderTargetProxy->instantiateRenderTarget(fContext->resourceProvider());
+ if (!fRenderTargetProxy->instantiate(fContext->resourceProvider())) {
+ return nullptr;
+ }
+ return fRenderTargetProxy->priv().peekRenderTarget();
}
GrSurfaceProxy* asSurfaceProxy() override { return fRenderTargetProxy.get(); }