webgl: Support vertex array objects on macOS.

This commit is contained in:
Josh Matthews 2019-09-13 16:17:47 -04:00
parent 75bc72b29f
commit 0d88c13186
2 changed files with 72 additions and 11 deletions

View file

@ -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);
},
}
}