diff --git a/Source/Engine/Platform/SDL/SDLWindow.cpp b/Source/Engine/Platform/SDL/SDLWindow.cpp index 82114d828..9ae817a0f 100644 --- a/Source/Engine/Platform/SDL/SDLWindow.cpp +++ b/Source/Engine/Platform/SDL/SDLWindow.cpp @@ -1000,7 +1000,8 @@ float SDLWindow::GetOpacity() const void SDLWindow::SetOpacity(const float opacity) { - SDL_SetWindowOpacity(_window, opacity); + if (!SDL_SetWindowOpacity(_window, opacity)) + LOG(Warning, "SDL_SetWindowOpacity failed: {0}", String(SDL_GetError())); } void SDLWindow::Focus()