mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
webgl: Ensure we don't generate gl errors in the paint task
The validations performed in the script side of this should always prevent this from happening, and this will allow us to catch bugs like the previous one.
This commit is contained in:
parent
3af24ed119
commit
f3bd1f7879
1 changed files with 3 additions and 0 deletions
|
@ -169,6 +169,9 @@ impl WebGLPaintTask {
|
|||
CanvasWebGLMsg::DrawingBufferHeight(sender) =>
|
||||
self.send_drawing_buffer_height(sender),
|
||||
}
|
||||
|
||||
// FIXME: Convert to `debug_assert!` once tests are run with debug assertions
|
||||
assert!(gl::get_error() == gl::NO_ERROR);
|
||||
}
|
||||
|
||||
/// Creates a new `WebGLPaintTask` and returns the out-of-process sender and the in-process
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue