hedgewars/uStore.pas
changeset 10129 cd2a64a1f4aa
parent 10128 0f6878b5395a
child 10130 a9d509848390
equal deleted inserted replaced
10128:0f6878b5395a 10129:cd2a64a1f4aa
   598     s:= filename + '.png';
   598     s:= filename + '.png';
   599     tmpsurf:= IMG_Load_RW(rwopsOpenRead(s), true);
   599     tmpsurf:= IMG_Load_RW(rwopsOpenRead(s), true);
   600 
   600 
   601     if tmpsurf = nil then
   601     if tmpsurf = nil then
   602         begin
   602         begin
   603         OutError(msgFailed, (imageFlags and ifCritical) <> 0);
   603         OutError(msgFailed, false);
       
   604         SDLTry(false, (imageFlags and ifCritical) <> 0);
   604         exit;
   605         exit;
   605         end;
   606         end;
   606 
   607 
   607     if ((imageFlags and ifIgnoreCaps) = 0) and ((tmpsurf^.w > MaxTextureSize) or (tmpsurf^.h > MaxTextureSize)) then
   608     if ((imageFlags and ifIgnoreCaps) = 0) and ((tmpsurf^.w > MaxTextureSize) or (tmpsurf^.h > MaxTextureSize)) then
   608         begin
   609         begin