1
0
Fork 0

(svn r11780) -Codechange: When compiling a dedicated server build, select the dedicated video driver by default.

release/0.6
peter1138 2008-01-07 16:41:03 +00:00
parent 2832a6cafb
commit 77717563e1
1 changed files with 6 additions and 0 deletions

View File

@ -22,7 +22,13 @@ public:
class FVideoDriver_Dedicated: public VideoDriverFactory<FVideoDriver_Dedicated> {
public:
#ifdef DEDICATED
/* Automatically select this dedicated driver when making a dedicated
* server build. */
static const int priority = 10;
#else
static const int priority = 0;
#endif
/* virtual */ const char *GetName() { return "dedicated"; }
/* virtual */ const char *GetDescription() { return "Dedicated Video Driver"; }
/* virtual */ Driver *CreateInstance() { return new VideoDriver_Dedicated(); }