| Index: src/gpu/gl/GrGLRenderTarget.cpp
|
| diff --git a/src/gpu/gl/GrGLRenderTarget.cpp b/src/gpu/gl/GrGLRenderTarget.cpp
|
| index 026c46bd5f5c3a4a8ad6b5c18631b7343a81b29b..3c275358258153769d95eedc56cfa4e761abebea 100644
|
| --- a/src/gpu/gl/GrGLRenderTarget.cpp
|
| +++ b/src/gpu/gl/GrGLRenderTarget.cpp
|
| @@ -159,8 +159,10 @@
|
| }
|
|
|
| bool GrGLRenderTarget::canAttemptStencilAttachment() const {
|
| - // Only modify the FBO's attachments if we have created the FBO.
|
| - return this->fRTFBOOwnership == GrBackendObjectOwnership::kOwned;
|
| + // When we have not created the FBO ID we do not attempt to modify its attachments.
|
| + // Direct GrGLRenderTarget instances are always created with CreateWrapped.
|
| + SkASSERT(this->resourcePriv().refsWrappedObjects());
|
| + return false;
|
| }
|
|
|
| void GrGLRenderTarget::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const {
|
|
|