1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-21 21:22:44 +00:00

Remove GLContext.is_sdl

This commit is contained in:
Alula 2024-08-27 17:10:43 +02:00
parent 56832514eb
commit 0db8ab0308
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA
2 changed files with 1 additions and 2 deletions

View file

@ -497,7 +497,7 @@ impl BackendEventLoop for SDL2EventLoop {
}
let platform = Box::new(SDL2GLPlatform(self.refs.clone()));
let gl_context: GLContext = GLContext { gles2_mode: false, is_sdl: true, platform, ctx };
let gl_context: GLContext = GLContext { gles2_mode: false, platform, ctx };
return Ok(Box::new(OpenGLRenderer::new(gl_context, imgui)));
}

View file

@ -34,7 +34,6 @@ pub trait GLPlatformFunctions {
pub struct GLContext {
pub gles2_mode: bool,
pub is_sdl: bool,
pub platform: Box<dyn GLPlatformFunctions>,
pub ctx: *mut Context,
}