From 0db8ab03080b7ce3106a62b2e359f1355abac5cf Mon Sep 17 00:00:00 2001 From: Alula <6276139+alula@users.noreply.github.com> Date: Tue, 27 Aug 2024 17:10:43 +0200 Subject: [PATCH] Remove GLContext.is_sdl --- src/framework/backend_sdl2.rs | 2 +- src/framework/render_opengl.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/framework/backend_sdl2.rs b/src/framework/backend_sdl2.rs index f0e7038..92ccef1 100644 --- a/src/framework/backend_sdl2.rs +++ b/src/framework/backend_sdl2.rs @@ -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))); } diff --git a/src/framework/render_opengl.rs b/src/framework/render_opengl.rs index 27727fa..25e6beb 100644 --- a/src/framework/render_opengl.rs +++ b/src/framework/render_opengl.rs @@ -34,7 +34,6 @@ pub trait GLPlatformFunctions { pub struct GLContext { pub gles2_mode: bool, - pub is_sdl: bool, pub platform: Box, pub ctx: *mut Context, }