diff options
author | 2012-03-26 17:58:35 +0000 | |
---|---|---|
committer | 2012-03-26 17:58:35 +0000 | |
commit | ba0cc3ef1109c5ebba7e3fffda5408ce6120eb9d (patch) | |
tree | 1e9fd5dd878c7211b23c0f00ea1c7cadae18f6ba /src/gpu/gl/GrGpuGL.cpp | |
parent | ba28d03e94dc221d6a803bf2a84a420b9159255c (diff) |
Extended debug GL interface to include textures.
http://codereview.appspot.com/5903043/
git-svn-id: http://skia.googlecode.com/svn/trunk@3495 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/GrGpuGL.cpp')
-rw-r--r-- | src/gpu/gl/GrGpuGL.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp index 69880e5555..10b42c06e4 100644 --- a/src/gpu/gl/GrGpuGL.cpp +++ b/src/gpu/gl/GrGpuGL.cpp @@ -983,6 +983,9 @@ GrTexture* GrGpuGL::onCreateTexture(const GrTextureDesc& desc, #if GR_COLLECT_STATS ++fStats.fRenderTargetCreateCnt; #endif + // unbind the texture from the texture unit before binding it to the frame buffer + GL_CALL(BindTexture(GR_GL_TEXTURE_2D, 0)); + if (!this->createRenderTargetObjects(glTexDesc.fWidth, glTexDesc.fHeight, glTexDesc.fTextureID, |