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

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

Issue 2159183002: Attaching an image to many color attachment points is unsupported (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 670782ecb6243bb97252cfe4918b8eb3cc585274..379dcd54eefedb1704dce5a02323387f536ab501 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -7146,6 +7146,11 @@ GLenum GLES2DecoderImpl::DoCheckFramebufferStatus(GLenum target) {
if (completeness != GL_FRAMEBUFFER_COMPLETE) {
return completeness;
}
+
+ if (framebuffer->HasDuplicateColorAttachments()) {
Zhenyao Mo 2016/07/19 20:39:15 This should go inside Framebuffer::IsPossiblyCompl
qiankun 2016/07/20 08:53:33 Done.
+ return GL_FRAMEBUFFER_UNSUPPORTED;
+ }
+
return framebuffer->GetStatus(texture_manager(), target);
}

Powered by Google App Engine
This is Rietveld 408576698