webgl: return missing attachment status from framebuffers with no attachments.

This commit is contained in:
Josh Matthews 2018-08-22 15:09:05 -04:00
parent da3b0ef88f
commit 690c98dda7
2 changed files with 2 additions and 11 deletions

View file

@ -66,7 +66,7 @@ impl WebGLFramebuffer {
target: Cell::new(None),
is_deleted: Cell::new(false),
size: Cell::new(None),
status: Cell::new(constants::FRAMEBUFFER_UNSUPPORTED),
status: Cell::new(constants::FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT),
color: DomRefCell::new(None),
depth: DomRefCell::new(None),
stencil: DomRefCell::new(None),
@ -206,7 +206,7 @@ impl WebGLFramebuffer {
self.status.set(constants::FRAMEBUFFER_INCOMPLETE_ATTACHMENT);
}
} else {
self.status.set(constants::FRAMEBUFFER_UNSUPPORTED);
self.status.set(constants::FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);
}
}