Avoid using an undeclared variable
authorkoda
Mon, 02 May 2016 23:03:42 -0400
changeset 11797 d8b7884abf9c
parent 11796 3127b0fece81
child 11798 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);