hedgewars/uRender.pas
changeset 13500 b5f8864a38d3
parent 12903 8a40ce061d94
child 13511 36f3f77e9b1b
equal deleted inserted replaced
13499:424944a835a7 13500:b5f8864a38d3
   525         end;
   525         end;
   526 {$ENDIF}
   526 {$ENDIF}
   527 
   527 
   528 {$IFNDEF PAS2C}
   528 {$IFNDEF PAS2C}
   529     if not Load_GL_VERSION_2_0 then
   529     if not Load_GL_VERSION_2_0 then
   530         halt;
   530         begin
       
   531         WriteLnToConsole('Load_GL_VERSION_2_0 returned false!');
       
   532         halt(HaltStartupError);
       
   533         end;
   531 {$ENDIF}
   534 {$ENDIF}
   532 
   535 
   533     shaderWater:= CompileProgram('water');
   536     shaderWater:= CompileProgram('water');
   534     glUseProgram(shaderWater);
   537     glUseProgram(shaderWater);
   535     glUniform1i(glGetUniformLocation(shaderWater, pchar('tex0')), 0);
   538     glUniform1i(glGetUniformLocation(shaderWater, pchar('tex0')), 0);