From eff9a22bfad4d956ad0392295cb498c77341ca72 Mon Sep 17 00:00:00 2001 From: "klobag@chromium.org" Date: Tue, 21 Dec 2010 21:48:56 +0000 Subject: 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 --- gpu/command_buffer/service/gles2_cmd_decoder.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gpu') 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) { -- cgit v1.1