Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: gpu/command_buffer/service/framebuffer_manager.cc

Issue 896303004: gpu: Workaround Adreno 420 bug with deleting current FBO. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/framebuffer_manager.cc
diff --git a/gpu/command_buffer/service/framebuffer_manager.cc b/gpu/command_buffer/service/framebuffer_manager.cc
index d766abb96f04934f5e75464fa58b1d7f85a04aae..b69344030b9be7f14c687a14a5d2fe880260aa43 100644
--- a/gpu/command_buffer/service/framebuffer_manager.cc
+++ b/gpu/command_buffer/service/framebuffer_manager.cc
@@ -631,6 +631,14 @@ void FramebufferManager::RemoveFramebuffer(GLuint client_id) {
}
}
+void Framebuffer::UnbindAttachments(GLenum target) {
+ for (AttachmentMap::const_iterator it = attachments_.begin();
+ it != attachments_.end(); ++it) {
+ GLenum attachment_point = it->first;
+ glFramebufferRenderbufferEXT(target, attachment_point, GL_RENDERBUFFER, 0);
no sievers 2015/02/10 19:11:33 What if the attachment is a texture? Also, can you
vmiura 2015/02/11 05:07:43 Isn't that OK? This would replace either texture/
vmiura 2015/02/17 18:48:41 Done.
+ }
+}
+
void Framebuffer::AttachRenderbuffer(
GLenum attachment, Renderbuffer* renderbuffer) {
const Attachment* a = GetAttachment(attachment);

Powered by Google App Engine
This is Rietveld 408576698