]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
ClearAllStates cleared the key states twice in vid_wgl.c, and vid_glx.c didn't do...
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 19 Nov 2003 07:50:53 +0000 (07:50 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 19 Nov 2003 07:50:53 +0000 (07:50 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3657 d7cf8633-e32d-0410-b094-e92efae38249

vid_glx.c
vid_wgl.c

index 1e5bb3a9b5b748216ef8867c2cea0bd7b0b2d9ae..000156b2f64c542229a9adb64f71b389f97fff29 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -556,6 +556,7 @@ void VID_Shutdown(void)
        ctx = NULL;
 
        GL_CloseLibrary();
+       Key_ClearStates ();
 }
 
 void signal_handler(int sig)
index 2f98be1f892a09de617dceec9834be36167f3ee6..64fed0390f8981f6ac34dc5d586e9a54f3a9a619 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -431,14 +431,6 @@ ClearAllStates
 */
 void ClearAllStates (void)
 {
-       int             i;
-
-// send an up event for each key, to make sure the server clears them all
-       for (i=0 ; i<256 ; i++)
-       {
-               Key_Event (i, 0, false);
-       }
-
        Key_ClearStates ();
        IN_ClearStates ();
 }