1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Force opengles driver in order to fix black backgrounds

This commit is contained in:
Mathieu Schroeter 2018-06-09 17:03:50 +02:00
parent 02219b26de
commit 74cf4791c3

View File

@ -179,6 +179,9 @@ ReadConfig ()
SDL_SetHint (SDL_HINT_RENDER_DRIVER, input.c_str ());
}
/* HACK: all backgrounds are black with opengles2 ?!? */
SDL_SetHint (SDL_HINT_RENDER_DRIVER, "opengles");
if (
!(g_settingsOverload & SETTING_MIDI) && j.find ("restoremidi") != j.end ())
g_restoreMidi = j["restoremidi"].get<bool> ();