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:
parent
56832514eb
commit
0db8ab0308
|
@ -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)));
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue