webgl: Update the match for WebGLError's new InvalidFramebufferOperation.

This commit is contained in:
Eric Anholt 2016-09-17 16:02:06 +01:00 committed by Glenn Watson
parent 66c736194d
commit cc294fffcc

View file

@ -591,6 +591,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
let error_code = if let Some(error) = self.last_error.get() {
match error {
WebGLError::InvalidEnum => constants::INVALID_ENUM,
WebGLError::InvalidFramebufferOperation => constants::INVALID_FRAMEBUFFER_OPERATION,
WebGLError::InvalidValue => constants::INVALID_VALUE,
WebGLError::InvalidOperation => constants::INVALID_OPERATION,
WebGLError::OutOfMemory => constants::OUT_OF_MEMORY,