# HG changeset patch # User unc0rr # Date 1383844217 -14400 # Node ID 8113075dc7cc5e3774eb8c165c745b701b2e2e71 # Parent aa2431ed87b29900712ed28866fd6ea5eda56655 Fix SDL_GL_SwapWindow, engine renders graphics now diff -r aa2431ed87b2 -r 8113075dc7cc hedgewars/SDLh.pas --- a/hedgewars/SDLh.pas Thu Nov 07 21:06:30 2013 +0400 +++ b/hedgewars/SDLh.pas Thu Nov 07 21:10:17 2013 +0400 @@ -1010,7 +1010,7 @@ function SDL_GL_CreateContext(window: PSDL_Window): PSDL_GLContext; cdecl; external SDLLibName; procedure SDL_GL_DeleteContext(context: PSDL_GLContext); cdecl; external SDLLibName; -function SDL_GL_SwapWindow(window: PSDL_Window): LongInt; cdecl; external SDLLibName; +procedure SDL_GL_SwapWindow(window: PSDL_Window); cdecl; external SDLLibName; function SDL_GL_SetSwapInterval(interval: LongInt): LongInt; cdecl; external SDLLibName; procedure SDL_VideoQuit; cdecl; external SDLLibName; diff -r aa2431ed87b2 -r 8113075dc7cc hedgewars/hwengine.pas --- a/hedgewars/hwengine.pas Thu Nov 07 21:06:30 2013 +0400 +++ b/hedgewars/hwengine.pas Thu Nov 07 21:10:17 2013 +0400 @@ -363,7 +363,7 @@ ParseCommand('fullscr 0', true); end; - ControllerInit(); // has to happen before InitKbdKeyTable to map keys + //ControllerInit(); // has to happen before InitKbdKeyTable to map keys InitKbdKeyTable(); AddProgress(); diff -r aa2431ed87b2 -r 8113075dc7cc hedgewars/uStore.pas --- a/hedgewars/uStore.pas Thu Nov 07 21:06:30 2013 +0400 +++ b/hedgewars/uStore.pas Thu Nov 07 21:10:17 2013 +0400 @@ -1264,7 +1264,7 @@ if GameType = gmtRecord then exit; {$IFDEF SDL2} - SDLTry(SDL_GL_SwapWindow(SDLwindow) <> 0, 'SDL_GL_SwapWindow', true); + SDL_GL_SwapWindow(SDLwindow); {$ELSE} SDL_GL_SwapBuffers(); {$ENDIF}