From 61789ee297b0dd0fae298fb4fd8c86afff933c08 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 22 Feb 2026 12:06:17 -0500
Subject: [PATCH] Force software rendering in Domino-Chain
The game relies on backbuffers having their contents preserved after presentation, which is undefined behavior when using the GL or Vulkan renderers, and results in flicker on some platform/driver combinations.
---
src/sdl2_compat.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 3cd94663..c480c87c 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -503,6 +503,11 @@ static QuirkEntryType quirks[] = {
{ "tauon/__main__.py", SDL_HINT_VIDEO_WAYLAND_SCALE_TO_DISPLAY, "0" },
{ "tauon/__main__.py", SDL_HINT_VIDEO_WAYLAND_ALLOW_LIBDECOR, "0" },
+ /* Domino-Chain relies on presented backbuffers having their contents preserved,
+ * which is undefined behavior on all but the software renderer.
+ */
+ { "domino-chain", SDL_HINT_RENDER_DRIVER, "software" },
+
#ifdef SDL2COMPAT_HAVE_X11
/* Stylus Labs Write does its own X11 input handling */
{ "Write", "SDL_VIDEO_X11_XINPUT2", "0" },