hedgewars/CCHandlers.inc
changeset 753 40fc0deb388f
parent 691 0a534a03437e
child 764 7513452b1d51
--- a/hedgewars/CCHandlers.inc	Tue Jan 22 17:18:58 2008 +0000
+++ b/hedgewars/CCHandlers.inc	Fri Jan 25 20:47:50 2008 +0000
@@ -425,12 +425,16 @@
 if Length(s) = 0 then cFullScreen:= not cFullScreen
                  else cFullScreen:= s = '1';
 
-flags:= SDL_HWSURFACE or SDL_DOUBLEBUF or SDL_HWACCEL;
+SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
+
+flags:= SDL_OPENGL;
 if cFullScreen then flags:= flags or SDL_FULLSCREEN
                else SDL_WM_SetCaption('Hedgewars', nil);
 SDL_FreeSurface(SDLPrimSurface);
 SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, cBits, flags);
 
+SetupOpenGL();
+
 {$IFDEF DEBUGFILE}
 AddFileLog('SDL video driver: ' + string(SDL_VideoDriverName(buf, sizeof(buf))));
 {$ENDIF}