Skip rendering of objects that are invisible (alpha = 0).

This commit is contained in:
Pieter Hulshoff 2020-03-13 15:49:17 +01:00
parent 834038bf51
commit aae8a92759
2 changed files with 5 additions and 1 deletions

View File

@ -276,6 +276,10 @@ SDL_Window* SDL::getWindow( )
bool SDL::renderCopy( SDL_Texture *texture, float alpha, SDL_Rect *src, SDL_Rect *dest, ViewInfo &viewInfo, float scaleX, float scaleY )
{
// Skip rendering if the object is invisible anyway
if ( alpha == 0 )
return true;
SDL_Rect srcRect;
SDL_Rect dstRect;
SDL_Rect srcRectCopy;

View File

@ -21,7 +21,7 @@
std::string retrofe_version_major = "0";
std::string retrofe_version_minor = "9";
std::string retrofe_version_build = "23";
std::string retrofe_version_build = "24";
std::string Version::getString( )