diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index 90c5950caa830d59d0670e3aba4e3f4eed6fb6a8..395f44e415144e1a9aefedc2fee5355f3383389a 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
if (h_Wnd <> nil) then SDL_DestroyWindow(h_Wnd);
if (h_GL <> nil) and (not preserveGL) then
begin
- {$IFDEF USE_NANOGL}
- nanoGL_Destroy;
- {$ENDIF USE_NANOGL}
+{$IFDEF USE_NANOGL}
+ nanoGL_Destroy;
+{$ENDIF USE_NANOGL}
SDL_GL_DeleteContext(h_GL);
end;
h_Wnd := nil;
e_WriteLog('nanoGL initialization error', TMsgType.Fatal);
exit;
end;
-{$ENDIF USE_NANOGL}
+{$ENDIF}
if (assigned(oglInitCB)) then oglInitCB();
if (h_GL <> nil) then g_SetVSync(gVSync);
{$ENDIF}