aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/gl_context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/canvas/gl_context.rs')
-rw-r--r--components/canvas/gl_context.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/canvas/gl_context.rs b/components/canvas/gl_context.rs
index 7720f8f678a..00e3f3ba4a9 100644
--- a/components/canvas/gl_context.rs
+++ b/components/canvas/gl_context.rs
@@ -11,7 +11,7 @@ use offscreen_gl_context::{GLLimits, GLVersion};
use offscreen_gl_context::{NativeGLContext, NativeGLContextHandle, NativeGLContextMethods};
use offscreen_gl_context::{OSMesaContext, OSMesaContextHandle};
use std::sync::{Arc, Mutex};
-use super::webgl_thread::WebGLImpl;
+use super::webgl_thread::{WebGLImpl, GLState};
/// The GLContextFactory is used to create shared GL contexts with the main thread GL context.
/// Currently, shared textures are used to render WebGL textures into the WR compositor.
@@ -144,13 +144,13 @@ impl GLContextWrapper {
}
}
- pub fn apply_command(&self, cmd: WebGLCommand) {
+ pub fn apply_command(&self, cmd: WebGLCommand, state: &mut GLState) {
match *self {
GLContextWrapper::Native(ref ctx) => {
- WebGLImpl::apply(ctx, cmd);
+ WebGLImpl::apply(ctx, state, cmd);
}
GLContextWrapper::OSMesa(ref ctx) => {
- WebGLImpl::apply(ctx, cmd);
+ WebGLImpl::apply(ctx, state, cmd);
}
}
}