]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
open client sockets before video starts, so that the Windows Firewall
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Dec 2008 00:20:33 +0000 (00:20 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Dec 2008 00:20:33 +0000 (00:20 +0000)
prompt will occur before video starts (it tends to screw up graphics
contexts otherwise)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8608 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index f1b218426f1158a5d5940bf9ab6c5e6857ee5d78..f00b8e6d0623a3caa18779d6afe507076b8fa1f6 100644 (file)
--- a/host.c
+++ b/host.c
@@ -929,6 +929,8 @@ void Host_StartVideo(void)
        if (!vid_opened && cls.state != ca_dedicated)
        {
                vid_opened = true;
+               // make sure we open sockets before opening video because the Windows Firewall "unblock?" dialog can screw up the graphics context on some graphics drivers
+               NetConn_UpdateSockets();
                VID_Start();
                CDAudio_Startup();
        }