[Scummvm-git-logs] scummvm master -> c61745ac9e34d6d332f3047f58d5be823b04546d
lephilousophe
noreply at scummvm.org
Sun Jun 8 17:43:50 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
c61745ac9e BACKENDS: SDL: Remove unused variable
Commit: c61745ac9e34d6d332f3047f58d5be823b04546d
https://github.com/scummvm/scummvm/commit/c61745ac9e34d6d332f3047f58d5be823b04546d
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-06-08T19:43:29+02:00
Commit Message:
BACKENDS: SDL: Remove unused variable
This has been useless since the removal of the old 3D backend.
Changed paths:
backends/platform/sdl/sdl.cpp
backends/platform/sdl/sdl.h
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp
index 8ea510470dc..726a1857961 100644
--- a/backends/platform/sdl/sdl.cpp
+++ b/backends/platform/sdl/sdl.cpp
@@ -401,12 +401,10 @@ void OSystem_SDL::initBackend() {
#if defined(USE_OPENGL_GAME) || defined(USE_OPENGL_SHADERS)
void OSystem_SDL::detectOpenGLFeaturesSupport() {
_oglType = OpenGL::kContextNone;
- _supportsFrameBuffer = false;
_supportsShaders = false;
#if USE_FORCED_GLES2
// Framebuffers and shaders are always available with GLES2
_oglType = OpenGL::kContextGLES2;
- _supportsFrameBuffer = true;
_supportsShaders = true;
#else
// Spawn a 32x32 window off-screen with a GL context to test if framebuffers are supported
@@ -452,7 +450,6 @@ void OSystem_SDL::detectOpenGLFeaturesSupport() {
}
OpenGLContext.initialize(_oglType);
- _supportsFrameBuffer = OpenGLContext.framebufferObjectSupported;
_supportsShaders = OpenGLContext.enginesShadersSupported;
OpenGLContext.reset();
#if SDL_VERSION_ATLEAST(3, 0, 0)
@@ -468,7 +465,6 @@ void OSystem_SDL::detectOpenGLFeaturesSupport() {
// SDL 1.2 only supports OpenGL
_oglType = OpenGL::kContextGL;
OpenGLContext.initialize(_oglType);
- _supportsFrameBuffer = OpenGLContext.framebufferObjectSupported;
_supportsShaders = OpenGLContext.enginesShadersSupported;
OpenGLContext.reset();
#endif
diff --git a/backends/platform/sdl/sdl.h b/backends/platform/sdl/sdl.h
index 79ad1b44dd4..d9c2190bb1a 100644
--- a/backends/platform/sdl/sdl.h
+++ b/backends/platform/sdl/sdl.h
@@ -150,7 +150,6 @@ protected:
void detectAntiAliasingSupport();
OpenGL::ContextType _oglType;
- bool _supportsFrameBuffer;
bool _supportsShaders;
Common::Array<uint> _antiAliasLevels;
#endif
More information about the Scummvm-git-logs
mailing list