}
Mode = GetGLAttributes(SdlContext, out flags);
- Debug.Print("SDL2 created GraphicsContext (mode: {0}) (flags: {1})",
- Mode, flags);
}
Handle = GraphicsContext.GetCurrentContext();
+ Debug.Print("SDL2 created GraphicsContext (handle: {0})", Handle);
+ Debug.Print(" GraphicsMode: {0}", Mode);
+ Debug.Print(" GraphicsContextFlags: {0}", flags);
}
#region Private Members
{
if (manual)
{
- Debug.Print("Disposing {0}", GetType());
+ Debug.Print("Disposing {0} (handle: {1})", GetType(), Handle);
lock (SDL.Sync)
{
SDL.GL.DeleteContext(SdlContext.Handle);
}
else
{
- Debug.WriteLine("Sdl2GraphicsContext leaked, did you forget to call Dispose()?");
+ Debug.Print("Sdl2GraphicsContext (handle: {0}) leaked, did you forget to call Dispose()?",
+ Handle);
}
IsDisposed = true;
}