summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authorklobag@chromium.org <klobag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-21 21:48:56 +0000
committerklobag@chromium.org <klobag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-21 21:48:56 +0000
commiteff9a22bfad4d956ad0392295cb498c77341ca72 (patch)
treebc7112b2b0ac17dac12018c4f390f3b1e9d75644 /gpu
parent8e574740bffe5733dfdb9960eeff6b5b47e384f3 (diff)
downloadchromium_src-eff9a22bfad4d956ad0392295cb498c77341ca72.zip
chromium_src-eff9a22bfad4d956ad0392295cb498c77341ca72.tar.gz
chromium_src-eff9a22bfad4d956ad0392295cb498c77341ca72.tar.bz2
Map the render process's glBindFramebuffer(0) to the context's backing FBO.
The default for the context's backing FBO is 0. If the context does have an internal FBO, it can return it so that glBindFramebuffer(0) will not detach the texture from it. Review URL: http://codereview.chromium.org/5987004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69879 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index e93624c..ad33868 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -2737,6 +2737,8 @@ void GLES2DecoderImpl::DoBindFramebuffer(GLenum target, GLuint client_id) {
} else {
service_id = info->service_id();
}
+ } else {
+ service_id = context_->GetBackingFrameBufferObject();
}
if (target == GL_FRAMEBUFFER || target == GL_DRAW_FRAMEBUFFER_EXT) {