--- a/hedgewars/uRender.pas Mon Aug 26 19:05:28 2019 +0300
+++ b/hedgewars/uRender.pas Mon Aug 26 14:27:03 2019 -0400
@@ -2185,6 +2185,7 @@
procedure freeModule;
begin
+ if cOnlyStats then exit;
{$IFDEF GL2}
glDeleteProgram(shaderMain);
glDeleteProgram(shaderWater);