hedgewars/SDLh.pas
changeset 2617 ef0d93cd61b2
parent 2606 ed687a8d081f
child 2618 23ee71bd049b
--- a/hedgewars/SDLh.pas	Wed Nov 11 21:54:28 2009 +0000
+++ b/hedgewars/SDLh.pas	Fri Nov 13 20:33:31 2009 +0000
@@ -474,11 +474,16 @@
 		SDL_GL_STEREO,
 		SDL_GL_MULTISAMPLEBUFFERS,
 		SDL_GL_MULTISAMPLESAMPLES,
+{$IFDEF SDL13}
 		SDL_GL_ACCELERATED_VISUAL,
 		SDL_GL_RETAINED_BACKING,
 		SDL_GL_CONTEXT_MAJOR_VERSION,
 		SDL_GL_CONTEXT_MINOR_VERSION
-		);
+{$ELSE}
+		SDL_GL_SWAP_CONTROL,
+		SDL_GL_ACCELERATED_VISUAL
+{$ENDIF}
+);
 
 {$IFDEF SDL13}
 	TSDL_ArrayByteOrder = (  // array component order, low byte -> high byte