mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Remove some misplaced framebuffer validations
This commit is contained in:
parent
819212e3b6
commit
943f95fe47
1 changed files with 0 additions and 10 deletions
|
@ -1303,19 +1303,9 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
||||||
// GL_OES_read_format support (assuming an underlying GLES
|
// GL_OES_read_format support (assuming an underlying GLES
|
||||||
// driver. Desktop is happy to format convert for us).
|
// driver. Desktop is happy to format convert for us).
|
||||||
constants::IMPLEMENTATION_COLOR_READ_FORMAT => {
|
constants::IMPLEMENTATION_COLOR_READ_FORMAT => {
|
||||||
handle_potential_webgl_error!(
|
|
||||||
self,
|
|
||||||
self.validate_framebuffer(),
|
|
||||||
return NullValue()
|
|
||||||
);
|
|
||||||
return Int32Value(constants::RGBA as i32);
|
return Int32Value(constants::RGBA as i32);
|
||||||
},
|
},
|
||||||
constants::IMPLEMENTATION_COLOR_READ_TYPE => {
|
constants::IMPLEMENTATION_COLOR_READ_TYPE => {
|
||||||
handle_potential_webgl_error!(
|
|
||||||
self,
|
|
||||||
self.validate_framebuffer(),
|
|
||||||
return NullValue()
|
|
||||||
);
|
|
||||||
return Int32Value(constants::UNSIGNED_BYTE as i32);
|
return Int32Value(constants::UNSIGNED_BYTE as i32);
|
||||||
},
|
},
|
||||||
constants::COMPRESSED_TEXTURE_FORMATS => {
|
constants::COMPRESSED_TEXTURE_FORMATS => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue