From: knghtbrd Date: Thu, 1 Jan 2004 16:45:56 +0000 (+0000) Subject: Undo moving cl_available. This really doesn't belong in system-specific X-Git-Tag: xonotic-v0.1.0preview~6168 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ae7c70225c6ac23300f7620394de4fab13485663;p=xonotic%2Fdarkplaces.git Undo moving cl_available. This really doesn't belong in system-specific video code, but it's the only place for that kind of thing unless someone wants to make the dedicated DarkPlaces binary a lot less bloated. Not on my priority list right now. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3778 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_glx.c b/vid_glx.c index ab40fdf8..6aeb5922 100644 --- a/vid_glx.c +++ b/vid_glx.c @@ -42,6 +42,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "quakedef.h" +// Tell startup code that we have a client +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 a6bc8a9f..eb0cc856 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -1,9 +1,6 @@ #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 85343a9e..0448ba64 100644 --- a/vid_wgl.c +++ b/vid_wgl.c @@ -24,6 +24,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "resource.h" #include +// Tell startup code that we have a client +int cl_available = true; + int (WINAPI *qwglChoosePixelFormat)(HDC, CONST PIXELFORMATDESCRIPTOR *); int (WINAPI *qwglDescribePixelFormat)(HDC, int, UINT, LPPIXELFORMATDESCRIPTOR); //int (WINAPI *qwglGetPixelFormat)(HDC);