diff options
Diffstat (limited to 'Ryujinx.Common/GraphicsDriver/NVThreadedOptimization.cs')
| -rw-r--r-- | Ryujinx.Common/GraphicsDriver/NVThreadedOptimization.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Common/GraphicsDriver/NVThreadedOptimization.cs b/Ryujinx.Common/GraphicsDriver/NVThreadedOptimization.cs index ad223631..d21d3555 100644 --- a/Ryujinx.Common/GraphicsDriver/NVThreadedOptimization.cs +++ b/Ryujinx.Common/GraphicsDriver/NVThreadedOptimization.cs @@ -152,7 +152,7 @@ namespace Ryujinx.Common.GraphicsDriver if (ptr != IntPtr.Zero) { - return Marshal.GetDelegateForFunctionPointer(ptr, typeof(T)) as T; + return Marshal.GetDelegateForFunctionPointer<T>(ptr); } else { |
