mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Improved the WebGL2 framebuffer render validation
It seems `MissingColorAttachment` should be returned only when all of the color attachments are missing.
This commit is contained in:
parent
2ed5694194
commit
5cb6eb2744
3 changed files with 1 additions and 23 deletions
|
@ -468,7 +468,7 @@ impl WebGLFramebuffer {
|
|||
return CompleteForRendering::Complete;
|
||||
}
|
||||
|
||||
if self.colors.iter().any(|att| att.borrow().is_none()) {
|
||||
if self.colors.iter().all(|att| att.borrow().is_none()) {
|
||||
return CompleteForRendering::MissingColorAttachment;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue