mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
webgl: Support vertex array objects on macOS.
This commit is contained in:
parent
75bc72b29f
commit
0d88c13186
2 changed files with 72 additions and 11 deletions
|
@ -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);
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue