Index: src/gpu/gl/GrGLRenderTarget.cpp |
diff --git a/src/gpu/gl/GrGLRenderTarget.cpp b/src/gpu/gl/GrGLRenderTarget.cpp |
index 98813beb2cce1ba03ef574ee9c9939c6370b02a2..4af7be2c1b69b6a659bf8598d996289d2c505936 100644 |
--- a/src/gpu/gl/GrGLRenderTarget.cpp |
+++ b/src/gpu/gl/GrGLRenderTarget.cpp |
@@ -31,6 +31,7 @@ void GrGLRenderTarget::init(const GrSurfaceDesc& desc, const IDDesc& idDesc) { |
fRTFBOID = idDesc.fRTFBOID; |
fTexFBOID = idDesc.fTexFBOID; |
fMSColorRenderbufferID = idDesc.fMSColorRenderbufferID; |
+ fIsWrapped = idDesc.fIsWrapped; |
fViewport.fLeft = 0; |
fViewport.fBottom = 0; |
@@ -54,7 +55,7 @@ size_t GrGLRenderTarget::onGpuMemorySize() const { |
} |
void GrGLRenderTarget::onRelease() { |
- if (!this->isWrapped()) { |
+ if (!fIsWrapped) { |
if (fTexFBOID) { |
GL_CALL(DeleteFramebuffers(1, &fTexFBOID)); |
} |
@@ -68,6 +69,7 @@ void GrGLRenderTarget::onRelease() { |
fRTFBOID = 0; |
fTexFBOID = 0; |
fMSColorRenderbufferID = 0; |
+ fIsWrapped = false; |
INHERITED::onRelease(); |
} |
@@ -75,5 +77,6 @@ void GrGLRenderTarget::onAbandon() { |
fRTFBOID = 0; |
fTexFBOID = 0; |
fMSColorRenderbufferID = 0; |
+ fIsWrapped = false; |
INHERITED::onAbandon(); |
} |