Skip setting `SDL_HINT_VIDEO_X11_FORCE_EGL` on NixOS again

see 60fae3540, 08bd14e80, and 3b62a38f1
This commit is contained in:
YoshiRulz 2024-09-13 00:16:23 +10:00
parent 89235cc9cf
commit dc582a4e7a
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
// #define DEBUG_OPENGL
using System.IO;
#if DEBUG_OPENGL
using System.Runtime.InteropServices;
#endif
@ -31,7 +33,7 @@ namespace BizHawk.Bizware.Graphics
// try to use EGL if it is available
// GLX is the old API, and is the more or less "deprecated" at this point, and potentially more buggy with some drivers
// we do need to a bit more work, in case EGL is not actually available or potentially doesn't have desktop GL support
SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1");
if (!Directory.Exists("/nix")/* this is just for me --yoshi */) SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1");
}
// init SDL video