From d4f18c6478a2ad0bffbaa281732e5ee979626ab7 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Sun, 10 Aug 2025 18:33:56 +0100 Subject: [PATCH] Ask for zero alpha bits for the CS This *might* fix https://gitlab.com/OpenMW/openmw/-/issues/8270, but I couldn't repro it. When I debugged it, the default value was 0xFFFFFFFF, which hopefully is a magic *don't care* value and asking for zero gives us exactly zero rather than at least zero. However, it might just mean *as much as possible*, in which case zero might still mean *at least zero* and sometimes end up not being zero. --- apps/opencs/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/opencs/main.cpp b/apps/opencs/main.cpp index f2e2156865..c7c35a192d 100644 --- a/apps/opencs/main.cpp +++ b/apps/opencs/main.cpp @@ -35,6 +35,7 @@ void setQSurfaceFormat() format.setSamples(ds->getMultiSamples()); format.setStencilBufferSize(ds->getMinimumNumStencilBits()); format.setSwapBehavior(QSurfaceFormat::DoubleBuffer); + format.setAlphaBufferSize(0); QSurfaceFormat::setDefaultFormat(format); }