diff options
author | Josh Matthews <josh@joshmatthews.net> | 2018-08-15 13:27:44 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2018-09-10 15:56:15 -0400 |
commit | d179435eabbcb2038a8c1c33f86465c10334eebc (patch) | |
tree | ff0fd285f9f5a97999cd6af0c96a6f9a557f4d01 /components/script/dom/webglrenderingcontext.rs | |
parent | 80ed8292415d3fba6201c47061a8252e09e9ac68 (diff) | |
download | servo-d179435eabbcb2038a8c1c33f86465c10334eebc.tar.gz servo-d179435eabbcb2038a8c1c33f86465c10334eebc.zip |
webgl: Ensure that framebuffers have a color attachment before reading or writing.
Diffstat (limited to 'components/script/dom/webglrenderingcontext.rs')
-rw-r--r-- | components/script/dom/webglrenderingcontext.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs index d227af7ea1a..c4ea4667cbd 100644 --- a/components/script/dom/webglrenderingcontext.rs +++ b/components/script/dom/webglrenderingcontext.rs @@ -339,7 +339,7 @@ impl WebGLRenderingContext { // this: clear() and getParameter(IMPLEMENTATION_COLOR_READ_*). fn validate_framebuffer(&self) -> WebGLResult<()> { match self.bound_framebuffer.get() { - Some(ref fb) if fb.check_status() != constants::FRAMEBUFFER_COMPLETE => { + Some(ref fb) if fb.check_status_for_rendering() != constants::FRAMEBUFFER_COMPLETE => { Err(InvalidFramebufferOperation) }, _ => Ok(()), |