From 9e3d5969e628427afd9362e68769a328104c0b0f Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 4 Sep 2025 09:24:22 -0700 Subject: [PATCH] Fixed testsoftwaretransparent on platforms using a renderer for window surfaces --- src/video/SDL_video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index cd906e2707..81e13446e1 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -448,6 +448,7 @@ static bool SDL_CreateWindowTexture(SDL_VideoDevice *_this, SDL_Window *window, // codechecker_false_positive [Malloc] Static analyzer doesn't realize allocated `data` is saved to SDL_PROP_WINDOW_TEXTUREDATA_POINTER and not leaked here. return false; // NOLINT(clang-analyzer-unix.Malloc) } + SDL_SetTextureBlendMode(data->texture, SDL_BLENDMODE_NONE); // Create framebuffer data data->bytes_per_pixel = SDL_BYTESPERPIXEL(*format);