From 667ea467fc414a45a4be7de595c782f8ecd51fa7 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Wed, 30 Aug 2023 22:40:52 +0200 Subject: [PATCH] Never use alpha blending for source surfaces in QIS. --- src/common/sdl_blitter/QisBlitter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/sdl_blitter/QisBlitter.cxx b/src/common/sdl_blitter/QisBlitter.cxx index 3fe584c01..c2196853e 100644 --- a/src/common/sdl_blitter/QisBlitter.cxx +++ b/src/common/sdl_blitter/QisBlitter.cxx @@ -183,8 +183,8 @@ void QisBlitter::recreateTexturesIfNecessary() if (myAttributes.blending) { const auto blendAlpha = static_cast(myAttributes.blendalpha * 2.55); - const std::array textures = { - mySrcTexture, myIntermediateTexture, mySecondaryIntermedateTexture + const std::array textures = { + myIntermediateTexture, mySecondaryIntermedateTexture }; for (SDL_Texture* texture: textures) { if (!texture) continue;