From 943f95fe4717459c845df7f6a10a039e5adf8e97 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Wed, 19 Sep 2018 12:31:55 +0200 Subject: [PATCH] Remove some misplaced framebuffer validations --- components/script/dom/webglrenderingcontext.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs index 61671ee3b15..f299b3ff2e4 100644 --- a/components/script/dom/webglrenderingcontext.rs +++ b/components/script/dom/webglrenderingcontext.rs @@ -1303,19 +1303,9 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext { // GL_OES_read_format support (assuming an underlying GLES // driver. Desktop is happy to format convert for us). constants::IMPLEMENTATION_COLOR_READ_FORMAT => { - handle_potential_webgl_error!( - self, - self.validate_framebuffer(), - return NullValue() - ); return Int32Value(constants::RGBA as i32); }, constants::IMPLEMENTATION_COLOR_READ_TYPE => { - handle_potential_webgl_error!( - self, - self.validate_framebuffer(), - return NullValue() - ); return Int32Value(constants::UNSIGNED_BYTE as i32); }, constants::COMPRESSED_TEXTURE_FORMATS => {