]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_agl.c
audited all Sys_Quit calls and gave them return values indicating
[xonotic/darkplaces.git] / vid_agl.c
index 5a3916742b7aee4f20478315997785e5167ca7e1..4ecbd2ee4b0a1ee74ead33481d4322b01847cb58 100644 (file)
--- a/vid_agl.c
+++ b/vid_agl.c
@@ -176,7 +176,7 @@ void VID_Finish (qboolean allowmousegrab)
                        }
                        else
                        {
-                               Con_Printf("WARNING: can't enable multithreaded GL, CGL functions not present\n", (int) e);
+                               Con_Printf("WARNING: can't enable multithreaded GL, CGL functions not present\n");
                                Cvar_SetValueQuick(&apple_multithreadedgl, 0);
                        }
                }
@@ -254,8 +254,7 @@ void signal_handler(int sig)
 {
        printf("Received signal %d, exiting...\n", sig);
        VID_RestoreSystemGamma();
-       Sys_Quit();
-       exit(0);
+       Sys_Quit(1);
 }
 
 void InitSig(void)
@@ -422,7 +421,7 @@ static void VID_ProcessPendingAsyncEvents (void)
 
        // Closed
        if (AsyncEvent_Quitting)
-               Sys_Quit();
+               Sys_Quit(0);
 }
 
 static void VID_BuildAGLAttrib(GLint *attrib, qboolean stencil, qboolean fullscreen, qboolean stereobuffer)
@@ -980,7 +979,7 @@ void Sys_SendKeyEvents(void)
                                                VID_AppFocusChanged(false);
                                                break;
                                        case kEventAppQuit:
-                                               Sys_Quit();
+                                               Sys_Quit(0);
                                                break;
                                        case kEventAppActiveWindowChanged:
                                                break;