hedgewars/uRender.pas
changeset 15376 5c0479d0ed5b
parent 15205 e7d7fe9f20e1
child 15384 c5934cdeecb6
equal deleted inserted replaced
15375:dff37ac61dcf 15376:5c0479d0ed5b
   517             end;
   517             end;
   518         end;
   518         end;
   519 {$ENDIF}
   519 {$ENDIF}
   520 
   520 
   521 {$IFDEF GL2}
   521 {$IFDEF GL2}
   522 
       
   523 {$IFDEF PAS2C}
       
   524     if glewInit() <> GLEW_OK then
       
   525         begin
       
   526         WriteLnToConsole('Failed to initialize GLEW.');
       
   527         halt(HaltStartupError);
       
   528         end;
       
   529 {$ENDIF}
       
   530 
   522 
   531 {$IFNDEF PAS2C}
   523 {$IFNDEF PAS2C}
   532     if not Load_GL_VERSION_2_0 then
   524     if not Load_GL_VERSION_2_0 then
   533         begin
   525         begin
   534         WriteLnToConsole('Load_GL_VERSION_2_0 returned false!');
   526         WriteLnToConsole('Load_GL_VERSION_2_0 returned false!');