diff options
Diffstat (limited to 'graphics/src/window/gl_compositor.rs')
| -rw-r--r-- | graphics/src/window/gl_compositor.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/graphics/src/window/gl_compositor.rs b/graphics/src/window/gl_compositor.rs index 2ba39d6e..1f37642e 100644 --- a/graphics/src/window/gl_compositor.rs +++ b/graphics/src/window/gl_compositor.rs @@ -1,4 +1,4 @@ -use crate::{Color, Size, Viewport}; +use crate::{Color, Error, Size, Viewport};  use iced_native::mouse;  use core::ffi::c_void; @@ -41,7 +41,7 @@ pub trait GLCompositor: Sized {      unsafe fn new(          settings: Self::Settings,          loader_function: impl FnMut(&str) -> *const c_void, -    ) -> (Self, Self::Renderer); +    ) -> Result<(Self, Self::Renderer), Error>;      /// Returns the amount of samples that should be used when configuring      /// an OpenGL context for this [`Compositor`]. | 
