aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/webgl_paint_task.rs
diff options
context:
space:
mode:
authorDavid Zbarsky <dzbarsky@gmail.com>2015-12-15 20:43:38 -0800
committerDavid Zbarsky <dzbarsky@gmail.com>2015-12-15 20:43:38 -0800
commit6a72d4dd128f18c5ff027f363fed51a7fad4531c (patch)
tree3b521639b1f87b22163cbb6e77fa91243b9af0ac /components/canvas/webgl_paint_task.rs
parent59a354427923f1c4febd9b8bcd6692900aa10f98 (diff)
downloadservo-6a72d4dd128f18c5ff027f363fed51a7fad4531c.tar.gz
servo-6a72d4dd128f18c5ff027f363fed51a7fad4531c.zip
Implement WebGL scissor method
Diffstat (limited to 'components/canvas/webgl_paint_task.rs')
-rw-r--r--components/canvas/webgl_paint_task.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/canvas/webgl_paint_task.rs b/components/canvas/webgl_paint_task.rs
index ef89fca2303..2073c0ccf81 100644
--- a/components/canvas/webgl_paint_task.rs
+++ b/components/canvas/webgl_paint_task.rs
@@ -111,6 +111,8 @@ impl WebGLPaintTask {
gl::pixel_store_i(name, val),
CanvasWebGLMsg::PolygonOffset(factor, units) =>
gl::polygon_offset(factor, units),
+ CanvasWebGLMsg::Scissor(x, y, width, height) =>
+ gl::scissor(x, y, width, height),
CanvasWebGLMsg::EnableVertexAttribArray(attrib_id) =>
gl::enable_vertex_attrib_array(attrib_id),
CanvasWebGLMsg::GetAttribLocation(program_id, name, chan) =>