[Scummvm-git-logs] scummvm master -> 1c6c10f38748e9b3cf890a38730d6ff173a9a2cf
digitall
noreply at scummvm.org
Tue Jan 6 02:45:36 UTC 2026
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:
1c6c10f387 BACKENDS: SDL: Add Debug Output For SDL Video OpenGL Antialiasing Detection
Commit: 1c6c10f38748e9b3cf890a38730d6ff173a9a2cf
https://github.com/scummvm/scummvm/commit/1c6c10f38748e9b3cf890a38730d6ff173a9a2cf
Author: D G Turner (digitall at scummvm.org)
Date: 2026-01-06T02:43:42Z
Commit Message:
BACKENDS: SDL: Add Debug Output For SDL Video OpenGL Antialiasing Detection
This is intended to aid debugging of startup slowdown / crashes which are
occurring for some users when running with integrated GPU.
Changed paths:
backends/platform/sdl/sdl.cpp
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp
index 45d4e38b557..e53fdd5e3e0 100644
--- a/backends/platform/sdl/sdl.cpp
+++ b/backends/platform/sdl/sdl.cpp
@@ -480,6 +480,8 @@ void OSystem_SDL::detectAntiAliasingSupport() {
int requestedSamples = 2;
while (requestedSamples <= 32) {
+ debugN(2, "Checking SDL Antialiasing Support With %d Samples... ", requestedSamples);
+
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, requestedSamples);
@@ -503,6 +505,11 @@ void OSystem_SDL::detectAntiAliasingSupport() {
if (actualSamples == requestedSamples) {
_antiAliasLevels.push_back(requestedSamples);
+ debug(2, "Yes from SDL3");
+ }
+ else
+ {
+ debug(2, "No from SDL3");
}
#if SDL_VERSION_ATLEAST(3, 0, 0)
@@ -511,9 +518,17 @@ void OSystem_SDL::detectAntiAliasingSupport() {
SDL_GL_DeleteContext(glContext);
#endif
}
+ else
+ {
+ debug(2, "No GL Context from SDL3");
+ }
SDL_DestroyWindow(window);
}
+ else
+ {
+ debug(2, "No Window from SDL3");
+ }
#else
SDL_putenv(const_cast<char *>("SDL_VIDEO_WINDOW_POS=9000,9000"));
SDL_SetVideoMode(32, 32, 0, SDL_OPENGL);
@@ -524,6 +539,11 @@ void OSystem_SDL::detectAntiAliasingSupport() {
if (actualSamples == requestedSamples) {
_antiAliasLevels.push_back(requestedSamples);
+ debug(2, "Yes from SDL2");
+ }
+ else
+ {
+ debug(2, "No from SDL2");
}
#endif
More information about the Scummvm-git-logs
mailing list