# HG changeset patch # User Patric Stout # Date 2024-01-15 20:57:55 # Node ID 897e1f8149ff14cc1f0810540c89c9022c2dec97 # Parent 8a2d650ec60eac59865074ed80f3b8f90c7c6d0b Fix: [SDL] remove hint to avoid hardware acceleration (#11790) This hint was once needed because of the way we handled surfaces. But as OpenGL already uses a hardware surface, we already had to fix all the issues that comes with it. As that is generic code, this hint is no longer actually needed. Further more, recent SDL versions break because of it on Wayland. diff --git a/src/video/sdl2_v.cpp b/src/video/sdl2_v.cpp --- a/src/video/sdl2_v.cpp +++ b/src/video/sdl2_v.cpp @@ -507,11 +507,6 @@ bool VideoDriver_SDL_Base::PollEvent() static const char *InitializeSDL() { - /* Explicitly disable hardware acceleration. Enabling this causes - * UpdateWindowSurface() to update the window's texture instead of - * its surface. */ - SDL_SetHint(SDL_HINT_FRAMEBUFFER_ACCELERATION, "0"); - /* Check if the video-driver is already initialized. */ if (SDL_WasInit(SDL_INIT_VIDEO) != 0) return nullptr;