Skip to content

Commit dc582a4

Browse files
committed
Skip setting SDL_HINT_VIDEO_X11_FORCE_EGL on NixOS again
see 60fae35, 08bd14e, and 3b62a38
1 parent 89235cc commit dc582a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/BizHawk.Bizware.Graphics/OpenGL/SDL2OpenGLContext.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// #define DEBUG_OPENGL
22

3+
using System.IO;
4+
35
#if DEBUG_OPENGL
46
using System.Runtime.InteropServices;
57
#endif
@@ -31,7 +33,7 @@ static SDL2OpenGLContext()
3133
// try to use EGL if it is available
3234
// GLX is the old API, and is the more or less "deprecated" at this point, and potentially more buggy with some drivers
3335
// we do need to a bit more work, in case EGL is not actually available or potentially doesn't have desktop GL support
34-
SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1");
36+
if (!Directory.Exists("/nix")/* this is just for me --yoshi */) SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1");
3537
}
3638

3739
// init SDL video

0 commit comments

Comments
 (0)