hedgewars/uRender.pas
changeset 15381 c117e17b90bc
parent 15205 e7d7fe9f20e1
child 15384 c5934cdeecb6
--- 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);