mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 17:36:24 +02:00
misc: Replace references to IntPtr/UIntPtr with nint/nuint + code cleanups.
This commit is contained in:
parent
a09d314817
commit
dfb4854d19
172 changed files with 902 additions and 914 deletions
|
@ -21,7 +21,7 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
if (logLevel == GraphicsDebugLevel.None)
|
||||
{
|
||||
GL.Disable(EnableCap.DebugOutputSynchronous);
|
||||
GL.DebugMessageCallback(null, IntPtr.Zero);
|
||||
GL.DebugMessageCallback(null, nint.Zero);
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
_counter = 0;
|
||||
_debugCallback = GLDebugHandler;
|
||||
|
||||
GL.DebugMessageCallback(_debugCallback, IntPtr.Zero);
|
||||
GL.DebugMessageCallback(_debugCallback, nint.Zero);
|
||||
|
||||
Logger.Warning?.Print(LogClass.Gpu, "OpenGL Debugging is enabled. Performance will be negatively impacted.");
|
||||
}
|
||||
|
@ -56,8 +56,8 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
int id,
|
||||
DebugSeverity severity,
|
||||
int length,
|
||||
IntPtr message,
|
||||
IntPtr userParam)
|
||||
nint message,
|
||||
nint userParam)
|
||||
{
|
||||
string msg = Marshal.PtrToStringUTF8(message).Replace('\n', ' ');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue