From 781cc62f89df64e15c6de3d547935eac52f22373 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Thu, 17 May 2018 17:47:42 -0400 Subject: [PATCH] - fix compile on non-Windows targets --- src/posix/cocoa/i_main.mm | 4 ++++ src/posix/sdl/sdlglvideo.cpp | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/posix/cocoa/i_main.mm b/src/posix/cocoa/i_main.mm index 665f2203a6..e6cf65d4ac 100644 --- a/src/posix/cocoa/i_main.mm +++ b/src/posix/cocoa/i_main.mm @@ -63,6 +63,10 @@ EXTERN_CVAR(Int, vid_defheight) EXTERN_CVAR(Bool, vid_vsync ) EXTERN_CVAR(Bool, fullscreen ) +CVAR(Bool, vr_enable_quadbuffered, false, CVAR_NOSET) +/* this is to fix compile on non-Windows platforms because this code is only + used on Windows, anyhow, but references to it exist elsewhere in the code */ + // --------------------------------------------------------------------------- diff --git a/src/posix/sdl/sdlglvideo.cpp b/src/posix/sdl/sdlglvideo.cpp index 98c8dcab49..39dfd6e4d2 100644 --- a/src/posix/sdl/sdlglvideo.cpp +++ b/src/posix/sdl/sdlglvideo.cpp @@ -72,6 +72,12 @@ EXTERN_CVAR (Bool, cl_capfps) DFrameBuffer *CreateGLSWFrameBuffer(int width, int height, bool bgra, bool fullscreen); +// DUMMY DATA DEFINITIONS -------------------------------------------------- + +CVAR(Bool, vr_enable_quadbuffered, false, CVAR_NOSET) +/* this is to fix compile on non-Windows platforms because this code is only + used on Windows, anyhow, but references to it exist elsewhere in the code */ + // PUBLIC DATA DEFINITIONS ------------------------------------------------- CUSTOM_CVAR(Bool, gl_debug, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)