Skip to content

Commit

Permalink
[OpenTK] Only init X11 if SDL2 is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
thefiddler committed Apr 27, 2014
1 parent 6186373 commit c40115e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/OpenTK/Configuration.cs
Expand Up @@ -306,7 +306,7 @@ internal static void Init(ToolkitOptions options)
RunningOnSdl2 = DetectSdl2();
}

if (runningOnLinux || options.Backend == PlatformBackend.PreferX11)
if ((runningOnLinux && !RunningOnSdl2) || options.Backend == PlatformBackend.PreferX11)
{
runningOnX11 = DetectX11();
}
Expand Down

0 comments on commit c40115e

Please sign in to comment.