]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_wgl.c
don't call ODE dWorldQuickStep with 0 step time
[xonotic/darkplaces.git] / vid_wgl.c
index 167e6ea7573dae6d708b0da50cd3e492396c8eed..3f7d177dcd1aac21a30ed04e519bd986c5f01a63 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -1900,8 +1900,8 @@ void VID_Shutdown (void)
                if (vid_begunscene)
                        IDirect3DDevice9_EndScene(vid_d3d9dev);
                vid_begunscene = false;
-//             Cmd_ExecuteString("r_texturestats", src_command);
-//             Cmd_ExecuteString("memlist", src_command);
+//             Cmd_ExecuteString("r_texturestats", src_command, true);
+//             Cmd_ExecuteString("memlist", src_command, true);
                IDirect3DDevice9_Release(vid_d3d9dev);
        }
        vid_d3d9dev = NULL;
@@ -2028,7 +2028,8 @@ void VID_EnableJoystick(qboolean enable)
        if (joy_detected.integer != sharedcount)
                Cvar_SetValueQuick(&joy_detected, sharedcount);
 
-       Cvar_SetValueQuick(&joy_active, success ? 1 : 0);
+       if (joy_active.integer != (success ? 1 : 0))
+               Cvar_SetValueQuick(&joy_active, success ? 1 : 0);
 }
 
 #ifdef SUPPORTDIRECTX