janitor: Fix warning about unused functions/modules when compiling with Skia and D3d or Metal

When using Metal or D3D, we don't need the glcontext module.
This commit is contained in:
Simon Hausmann 2022-09-22 13:50:05 +02:00 committed by Simon Hausmann
parent c07ae0bf12
commit dbe9f33bb4

View file

@ -13,7 +13,9 @@ use std::rc::Rc;
mod glwindow;
use glwindow::*;
#[cfg(any(feature = "renderer-winit-femtovg", skia_backend_opengl))]
mod glcontext;
#[cfg(any(feature = "renderer-winit-femtovg", skia_backend_opengl))]
use glcontext::*;
pub(crate) mod event_loop;
mod renderer {