mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 01:15:35 +00:00
fix platform detection in nativelibrary
This commit is contained in:
parent
92530a7544
commit
8780e5f3aa
|
@ -62,7 +62,7 @@ namespace OpenTK
|
||||||
|
|
||||||
public static NativeLibrary Load(string libraryName)
|
public static NativeLibrary Load(string libraryName)
|
||||||
{
|
{
|
||||||
#if NETCORE
|
#if NETSTANDARD
|
||||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
{
|
{
|
||||||
return new WindowsNativeLibrary(libraryName);
|
return new WindowsNativeLibrary(libraryName);
|
||||||
|
|
Loading…
Reference in a new issue