render: Add focus indicator
This commit is contained in:
parent
a8920f533e
commit
9b416b5779
11 changed files with 291 additions and 68 deletions
|
|
@ -32,7 +32,7 @@ use tracing::{error, info, warn};
|
|||
#[cfg(feature = "debug")]
|
||||
use crate::state::Fps;
|
||||
|
||||
use super::render::CursorMode;
|
||||
use super::render::{init_shaders, CursorMode};
|
||||
|
||||
pub struct WinitState {
|
||||
// The winit backend currently has no notion of multiple windows
|
||||
|
|
@ -147,6 +147,7 @@ pub fn init_backend(
|
|||
) -> Result<()> {
|
||||
let (mut backend, mut input) =
|
||||
winit::init().map_err(|_| anyhow!("Failed to initilize winit backend"))?;
|
||||
init_shaders(backend.renderer()).expect("Failed to initialize renderer");
|
||||
|
||||
init_egl_client_side(dh, state, &mut backend)?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue