mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-03 15:40:59 +00:00
ModalLoopCallback is never assigned.
ModalLoopCallback is never assigned, so always has it's default value null. Replace all uses of ModalLoopCallback with null.
This commit is contained in:
parent
95bd094404
commit
ab0751e7ec
|
@ -58,7 +58,6 @@ namespace OpenTK.Platform.Windows
|
||||||
|
|
||||||
readonly uint ModalLoopTimerPeriod = 1;
|
readonly uint ModalLoopTimerPeriod = 1;
|
||||||
UIntPtr timer_handle;
|
UIntPtr timer_handle;
|
||||||
readonly Functions.TimerProc ModalLoopCallback;
|
|
||||||
|
|
||||||
bool class_registered;
|
bool class_registered;
|
||||||
bool disposed;
|
bool disposed;
|
||||||
|
@ -716,7 +715,7 @@ namespace OpenTK.Platform.Windows
|
||||||
{
|
{
|
||||||
if (timer_handle == UIntPtr.Zero)
|
if (timer_handle == UIntPtr.Zero)
|
||||||
{
|
{
|
||||||
timer_handle = Functions.SetTimer(handle, new UIntPtr(1), ModalLoopTimerPeriod, ModalLoopCallback);
|
timer_handle = Functions.SetTimer(handle, new UIntPtr(1), ModalLoopTimerPeriod, null);
|
||||||
if (timer_handle == UIntPtr.Zero)
|
if (timer_handle == UIntPtr.Zero)
|
||||||
Debug.Print("[Warning] Failed to set modal loop timer callback ({0}:{1}->{2}).",
|
Debug.Print("[Warning] Failed to set modal loop timer callback ({0}:{1}->{2}).",
|
||||||
GetType().Name, handle, Marshal.GetLastWin32Error());
|
GetType().Name, handle, Marshal.GetLastWin32Error());
|
||||||
|
|
Loading…
Reference in a new issue