diff options
Diffstat (limited to 'components/canvas/gl_context.rs')
-rw-r--r-- | components/canvas/gl_context.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/canvas/gl_context.rs b/components/canvas/gl_context.rs index 093d1837920..281c78b7f3b 100644 --- a/components/canvas/gl_context.rs +++ b/components/canvas/gl_context.rs @@ -8,7 +8,7 @@ use compositing::compositor_thread::{self, CompositorProxy}; use euclid::Size2D; use gleam::gl; use offscreen_gl_context::{ - ColorAttachmentType, GLContext, GLContextAttributes, GLContextDispatcher, + ColorAttachmentType, DrawBuffer, GLContext, GLContextAttributes, GLContextDispatcher, }; use offscreen_gl_context::{GLLimits, GLVersion}; use offscreen_gl_context::{NativeGLContext, NativeGLContextHandle, NativeGLContextMethods}; @@ -207,7 +207,7 @@ impl GLContextWrapper { } } - pub fn resize(&mut self, size: Size2D<u32>) -> Result<(), &'static str> { + pub fn resize(&mut self, size: Size2D<u32>) -> Result<DrawBuffer, &'static str> { match *self { GLContextWrapper::Native(ref mut ctx) => { // FIXME(nox): Why are those i32 values? |