Browse Source

Fix opposite intention of AllTexturesReleased conditional check (#589)

Paul Gruenbacher 1 year ago
parent
commit
ee53236663
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/Core/TextureDatabase.cpp

+ 2 - 2
Source/Core/TextureDatabase.cpp

@@ -151,11 +151,11 @@ bool TextureDatabase::AllTexturesReleased()
 	if (texture_database)
 	{
 		for (const auto& texture : texture_database->textures)
-			if (!texture.second->IsLoaded())
+			if (texture.second->IsLoaded())
 				return false;
 
 		for (const auto& texture : texture_database->callback_textures)
-			if (!texture->IsLoaded())
+			if (texture->IsLoaded())
 				return false;
 	}