Trash cached render target when creating a new FBO and its ID is bound.
git-svn-id: http://skia.googlecode.com/svn/trunk@2964 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrGpuGL.cpp b/src/gpu/GrGpuGL.cpp
index 143261c..85defc5 100644
--- a/src/gpu/GrGpuGL.cpp
+++ b/src/gpu/GrGpuGL.cpp
@@ -930,6 +930,8 @@
desc->fRTFBOID = desc->fTexFBOID;
}
+ // below here we may bind the FBO
+ fHWDrawState.setRenderTarget(NULL);
if (desc->fRTFBOID != desc->fTexFBOID) {
GrAssert(desc->fSampleCnt > 1);
GL_CALL(BindRenderbuffer(GR_GL_RENDERBUFFER,