]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_sdl.c
fix a crash when doing vid_restart or r_restart with detailtexturing on
[xonotic/darkplaces.git] / sys_sdl.c
index bdefa12255a10eb0e7698774f034dffd80f527cb..39c57df999a2159099295a4015f7d8cfe4f5df47 100644 (file)
--- a/sys_sdl.c
+++ b/sys_sdl.c
@@ -40,11 +40,8 @@ void Sys_Error (const char *error, ...)
        va_start (argptr,error);
        dpvsnprintf (string, sizeof (string), error, argptr);
        va_end (argptr);
-       fprintf(stderr, "Error: %s\n", string);
 
-       Con_Print ("Quake Error: ");
-       Con_Print (string);
-       Con_Print ("\n");
+       Con_Printf ("Quake Error: %s\n", string);
 
        Host_Shutdown ();
        exit (1);
@@ -52,7 +49,7 @@ void Sys_Error (const char *error, ...)
 
 void Sys_PrintToTerminal(const char *text)
 {
-       printf("%s", text);
+       fprintf(stdout, "%s", text);
 }
 
 double Sys_DoubleTime (void)