From: knghtbrd Date: Thu, 1 Jan 2004 04:01:00 +0000 (+0000) Subject: Moved cl_available definition to vid_shared.c X-Git-Tag: xonotic-v0.1.0preview~6173 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f0759ed4221a432267e456d6862000cd55775504;p=xonotic%2Fdarkplaces.git Moved cl_available definition to vid_shared.c git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3773 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_glx.c b/vid_glx.c index ec9a998b..293cd098 100644 --- a/vid_glx.c +++ b/vid_glx.c @@ -42,8 +42,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "quakedef.h" -int cl_available = true; - //GLX prototypes XVisualInfo *(GLAPIENTRY *qglXChooseVisual)(Display *dpy, int screen, int *attribList); GLXContext (GLAPIENTRY *qglXCreateContext)(Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct); diff --git a/vid_shared.c b/vid_shared.c index b60a16f4..de2f788d 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -1,6 +1,9 @@ #include "quakedef.h" +// Tell startup code that we have a client +int cl_available = true; + // global video state viddef_t vid; diff --git a/vid_wgl.c b/vid_wgl.c index e23b1bc7..85343a9e 100644 --- a/vid_wgl.c +++ b/vid_wgl.c @@ -24,8 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "resource.h" #include -int cl_available = true; - int (WINAPI *qwglChoosePixelFormat)(HDC, CONST PIXELFORMATDESCRIPTOR *); int (WINAPI *qwglDescribePixelFormat)(HDC, int, UINT, LPPIXELFORMATDESCRIPTOR); //int (WINAPI *qwglGetPixelFormat)(HDC);