aboutsummaryrefslogtreecommitdiffstats
path: root/code/sdl
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-09-06 18:21:10 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-09-06 18:21:10 +0000
commit4e64b0a1b82badbf25bb32bd96290f96668c2290 (patch)
treeb6712eb8ada4742f54b84a507ce48070ed668b39 /code/sdl
parented3c9635a68e03c1448e64ff49824b65fa1f4776 (diff)
downloadioquake3-aero-4e64b0a1b82badbf25bb32bd96290f96668c2290.tar.gz
ioquake3-aero-4e64b0a1b82badbf25bb32bd96290f96668c2290.zip
* Compile time and runtime checks for SDL >= 1.2.7
* Modified versioning to play nice with the reverted Makefile change git-svn-id: svn://svn.icculus.org/quake3/trunk@1168 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/sdl')
-rw-r--r--code/sdl/sdl_glimp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/code/sdl/sdl_glimp.c b/code/sdl/sdl_glimp.c
index 4d8257f..b75380b 100644
--- a/code/sdl/sdl_glimp.c
+++ b/code/sdl/sdl_glimp.c
@@ -22,6 +22,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "SDL.h"
+#if !SDL_VERSION_ATLEAST(1, 2, 10)
+#define SDL_GL_ACCELERATED_VISUAL 15
+#define SDL_GL_SWAP_CONTROL 16
+#elif MINSDL_PATCH >= 10
+#error Code block no longer necessary, please remove
+#endif
+
#ifdef SMP
#include "SDL_thread.h"
#endif