From 1bfd930402239be5bfee326456b75d71954f9af0 Mon Sep 17 00:00:00 2001 From: Mayank Nagpal Date: Sat, 3 Jul 2021 14:44:55 +0530 Subject: [PATCH] Removed Yellow texture used when texture file missing --- src/gltf/TextureBuilder.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gltf/TextureBuilder.cpp b/src/gltf/TextureBuilder.cpp index 7424a5a..ea9869a 100644 --- a/src/gltf/TextureBuilder.cpp +++ b/src/gltf/TextureBuilder.cpp @@ -214,9 +214,8 @@ std::shared_ptr TextureBuilder::simple(int rawTexIndex, const std:: } if (!image) { // fallback is tiny transparent PNG - image = new ImageData( - textureName, - "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg=="); +// image = new ImageData(textureName, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg=="); + return nullptr; } std::shared_ptr texDat = gltf.textures.hold(