Avoid using an undeclared variable
authorkoda
Mon, 02 May 2016 23:03:42 -0400 (2016-05-03)
changeset 11792 d8b7884abf9c
parent 11791 3127b0fece81
child 11793 80fe306460b2
Avoid using an undeclared variable
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);