added heap allocation counter; reduced string allocations;

This commit is contained in:
Turanszki Janos
2020-04-24 23:48:54 +01:00
parent 4698e2a0f7
commit dc6c068f33
31 changed files with 192 additions and 132 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ namespace tinygltf
std::shared_ptr<wiResource> RegisterTexture(tinygltf::Image *image, const string& type_name)
{
// We will load the texture2d by hand here and register to the resource manager (if it was not already registered)
if (!wiResourceManager::Contains(wiHashString(image->uri)))
if (!wiResourceManager::Contains(image->uri))
{
int width = image->width;
int height = image->height;