From 375074577f4831e6096f9a402d09778266b6f657 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Mon, 15 Jan 2024 21:57:55 +0100 Subject: [PATCH] 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. --- src/video/sdl2_v.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/video/sdl2_v.cpp b/src/video/sdl2_v.cpp index ae8883e8e889b..2bb381f5ecbd9 100644 --- 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;