webgl: Only update FBO status once in framebufferTexture2D().

We update it below after we send the actual FramebufferTexture2D
command to the GL.
This commit is contained in:
Eric Anholt 2016-11-01 21:27:21 -07:00
parent 5e5eb18b0b
commit eaec5de184

View file

@ -277,7 +277,6 @@ impl WebGLFramebuffer {
_ => {
*binding.borrow_mut() = None;
self.update_status();
None
}
};