X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fsdl2%2Fg_system.pas;h=85e5d947e2dd9af743c1c4b5d48752ba40fbefd8;hp=9485fd9b6e9a0897a5eb328b7232ae8f7ac8a3d9;hb=d63e6eaaecbc83b40c9b932b3381fc324f6a2461;hpb=87c3a28dda4534eec3fde4ef06dc5f324b2c4b3b diff --git a/src/game/sdl2/g_system.pas b/src/game/sdl2/g_system.pas index 9485fd9..85e5d94 100644 --- a/src/game/sdl2/g_system.pas +++ b/src/game/sdl2/g_system.pas @@ -128,7 +128,7 @@ implementation context := SDL_GL_CreateContext(window); if context <> nil then begin - {$IFDEF USE_NOGL} + {$IFDEF NOGL_INIT} nogl_Init; {$ENDIF} UpdateSize(w, h); @@ -475,7 +475,7 @@ implementation e_WriteLog('Releasing SDL2', TMsgType.Notify); if context <> nil then begin - {$IFDEF USE_NOGL} + {$IFDEF NOGL_INIT} nogl_Quit; {$ENDIF} SDL_GL_DeleteContext(context);