From bf50a2961e0f3ec606a40aa6ba8c016e9fdbaa46 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 15 Jul 2010 18:49:24 +1200 Subject: [PATCH] fix weirdness with modifiers being held during startup (C-F5 in particular broke things) --- OpenRA.Gl/GraphicsDevice.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Gl/GraphicsDevice.cs b/OpenRA.Gl/GraphicsDevice.cs index 093111efb0..28351cf544 100644 --- a/OpenRA.Gl/GraphicsDevice.cs +++ b/OpenRA.Gl/GraphicsDevice.cs @@ -101,6 +101,8 @@ namespace OpenRA.GlRenderer CheckGlError(); Gl.glEnableClientState(Gl.GL_TEXTURE_COORD_ARRAY); CheckGlError(); + + Sdl.SDL_SetModState(0); // i have had enough. } static Cg.CGerrorCallbackFuncDelegate CgErrorCallback = () =>