diff options
Diffstat (limited to 'components/canvas/webgl_paint_task.rs')
-rw-r--r-- | components/canvas/webgl_paint_task.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/canvas/webgl_paint_task.rs b/components/canvas/webgl_paint_task.rs index 40247266472..634a72e61fa 100644 --- a/components/canvas/webgl_paint_task.rs +++ b/components/canvas/webgl_paint_task.rs @@ -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 |