diff --git a/src/game/g_gfx.pas b/src/game/g_gfx.pas
index 42dfa8c8eae83811f7bb35f823ac7d7b47ea3e2d..0f26212b29ce8f21c066bb80299f4c395011bfbe 100644 (file)
--- a/src/game/g_gfx.pas
+++ b/src/game/g_gfx.pas
-(* Copyright (C) DooM 2D:Forever Developers
+(* Copyright (C) Doom 2D: Forever Developers
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
implementation
uses
- g_map, g_panel, g_basic, Math, e_graphics, GL, GLExt,
+{$IFDEF USE_NANOGL}
+ nanoGL,
+{$ELSE}
+ GL, GLExt,
+{$ENDIF}
+ g_map, g_panel, g_basic, Math, e_graphics,
g_options, g_console, SysUtils, g_triggers, MAPDEF,
g_game, g_language, g_net, utils, xprofiler;
var
a: Integer;
begin
+{$IFDEF USE_NANOGL} // FIXIT: nanoGL doesn't support glBegin(GL_POINTS)
+ count := 0;
+{$ENDIF}
if count > 50000 then count := 50000;
if (count < 1) then count := 1;
SetLength(Particles, count);