# HG changeset patch
# User koda
# Date 1462244622 14400
# Node ID d8b7884abf9ccda92dea91ac4fc41abd4085b93d
# Parent  3127b0fece813904625bfca09f6e8fbc48f3832e
Avoid using an undeclared variable

diff -r 3127b0fece81 -r d8b7884abf9c hedgewars/uRender.pas
--- a/hedgewars/uRender.pas	Mon May 02 22:52:21 2016 -0400
+++ b/hedgewars/uRender.pas	Mon May 02 23:03:42 2016 -0400
@@ -508,8 +508,7 @@
 {$IFDEF GL2}
 
 {$IFDEF PAS2C}
-    err := glewInit();
-    if err <> GLEW_OK then
+    if glewInit() <> GLEW_OK then
         begin
         WriteLnToConsole('Failed to initialize GLEW.');
         halt(HaltStartupError);