Removed unnecessary assert in WIN_SetWindowOpacity()
Some checks failed
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled

Fixes https://github.com/libsdl-org/SDL/issues/15896

(cherry picked from commit f0e99e7c7f)
This commit is contained in:
Sam Lantinga 2026-06-27 21:10:19 -07:00
parent 03d17f40bf
commit 1326f406a6

View file

@ -1648,8 +1648,6 @@ bool WIN_SetWindowOpacity(SDL_VideoDevice *_this, SDL_Window *window, float opac
HWND hwnd = data->hwnd;
const LONG style = GetWindowLong(hwnd, GWL_EXSTYLE);
SDL_assert(style != 0);
if (opacity == 1.0f) {
// want it fully opaque, just mark it unlayered if necessary.
if (style & WS_EX_LAYERED) {