equal
deleted
inserted
replaced
574 end; |
574 end; |
575 |
575 |
576 if ((imageFlags and ifIgnoreCaps) = 0) and ((tmpsurf^.w > MaxTextureSize) or (tmpsurf^.h > MaxTextureSize)) then |
576 if ((imageFlags and ifIgnoreCaps) = 0) and ((tmpsurf^.w > MaxTextureSize) or (tmpsurf^.h > MaxTextureSize)) then |
577 begin |
577 begin |
578 SDL_FreeSurface(tmpsurf); |
578 SDL_FreeSurface(tmpsurf); |
579 OutError(msgFailedSize, (imageFlags and ifCritical) <> 0); |
579 OutError(msgFailedSize, ((not cOnlyStats) and ((imageFlags and ifCritical) <> 0))); |
580 // dummy surface to replace non-critical textures that failed to load due to their size |
580 // dummy surface to replace non-critical textures that failed to load due to their size |
581 LoadImage:= SDL_CreateRGBSurface(SDL_SWSURFACE, 2, 2, 32, RMask, GMask, BMask, AMask); |
581 LoadImage:= SDL_CreateRGBSurface(SDL_SWSURFACE, 2, 2, 32, RMask, GMask, BMask, AMask); |
582 exit; |
582 exit; |
583 end; |
583 end; |
584 |
584 |