Fix StyleCop warnings in OpenRA.Renderer.Sdl2

This commit is contained in:
Hellhake
2015-01-01 23:10:12 +01:00
parent beefe18ca5
commit bce017494d
3 changed files with 8 additions and 2 deletions

View File

@@ -157,11 +157,13 @@ namespace OpenRA.Renderer.Sdl2
SDL.SDL_GL_DeleteContext(context);
context = IntPtr.Zero;
}
if (window != IntPtr.Zero)
{
SDL.SDL_DestroyWindow(window);
window = IntPtr.Zero;
}
SDL.SDL_Quit();
}