aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglframebuffer.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2018-08-22 15:09:05 -0400
committerJosh Matthews <josh@joshmatthews.net>2018-09-10 15:56:17 -0400
commit690c98dda7d618d9f0a6553ca17d1dfc4a97555b (patch)
treec0ffa49965faf9a2e49e03151deb2ae520d680f8 /components/script/dom/webglframebuffer.rs
parentda3b0ef88f52d61f4f94f2fa70099d42aebae061 (diff)
downloadservo-690c98dda7d618d9f0a6553ca17d1dfc4a97555b.tar.gz
servo-690c98dda7d618d9f0a6553ca17d1dfc4a97555b.zip
webgl: return missing attachment status from framebuffers with no attachments.
Diffstat (limited to 'components/script/dom/webglframebuffer.rs')
-rw-r--r--components/script/dom/webglframebuffer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/webglframebuffer.rs b/components/script/dom/webglframebuffer.rs
index de659e6ebd3..83814bd2f30 100644
--- a/components/script/dom/webglframebuffer.rs
+++ b/components/script/dom/webglframebuffer.rs
@@ -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);
}
}