mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-22 20:45:38 +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