aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/gl_context.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2019-09-13 16:17:47 -0400
committerJosh Matthews <josh@joshmatthews.net>2019-09-13 16:20:41 -0400
commit0d88c13186ff7e13cd3151bf92d921b3cd293aaa (patch)
tree9a7cbed1c6cfedb9ea047c84ac05a0203631e90e /components/canvas/gl_context.rs
parent75bc72b29f1eb71ac81c1a53fe901ea9e9b45b20 (diff)
downloadservo-0d88c13186ff7e13cd3151bf92d921b3cd293aaa.tar.gz
servo-0d88c13186ff7e13cd3151bf92d921b3cd293aaa.zip
webgl: Support vertex array objects on macOS.
Diffstat (limited to 'components/canvas/gl_context.rs')
-rw-r--r--components/canvas/gl_context.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/canvas/gl_context.rs b/components/canvas/gl_context.rs
index b8168753fa4..66fd3001277 100644
--- a/components/canvas/gl_context.rs
+++ b/components/canvas/gl_context.rs
@@ -158,15 +158,16 @@ impl GLContextWrapper {
pub fn apply_command(
&self,
cmd: WebGLCommand,
+ use_apple_vertex_array: bool,
backtrace: WebGLCommandBacktrace,
state: &mut GLState,
) {
match *self {
GLContextWrapper::Native(ref ctx) => {
- WebGLImpl::apply(ctx, state, cmd, backtrace);
+ WebGLImpl::apply(ctx, state, use_apple_vertex_array, cmd, backtrace);
},
GLContextWrapper::OSMesa(ref ctx) => {
- WebGLImpl::apply(ctx, state, cmd, backtrace);
+ WebGLImpl::apply(ctx, state, false, cmd, backtrace);
},
}
}