Permalink
Browse files

ModalLoopCallback is never assigned.

ModalLoopCallback is never assigned, so always has it's default value
null. Replace all uses of ModalLoopCallback with null.
  • Loading branch information...
1 parent 95bd094 commit ab0751e7ec05ab40bd004f766c58e8bc53ed6527 @Frassle Frassle committed Feb 22, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 Source/OpenTK/Platform/Windows/WinGLNative.cs
@@ -58,7 +58,6 @@ internal sealed class WinGLNative : INativeWindow, IInputDriver
readonly uint ModalLoopTimerPeriod = 1;
UIntPtr timer_handle;
- readonly Functions.TimerProc ModalLoopCallback;
bool class_registered;
bool disposed;
@@ -716,7 +715,7 @@ private void StartTimer(IntPtr handle)
{
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)
Debug.Print("[Warning] Failed to set modal loop timer callback ({0}:{1}->{2}).",
GetType().Name, handle, Marshal.GetLastWin32Error());

0 comments on commit ab0751e

Please sign in to comment.