Commit 09a70459 authored by Philip Trettner's avatar Philip Trettner

Fixed nullptr empty texture bug.

parent f79fa94c
......@@ -36,7 +36,7 @@ SharedTexture2D loadTexture2D(const std::string& _filename, ColorSpace _colorSpa
} else {
ACGL::Utils::error() << "can't create Texture from file " << _filename << " creating small empty texture instead." << std::endl;
//SharedTexture2D dummy = std::make_shared<Texture2D>();
SharedTexture2D dummy = SharedTexture2D();
SharedTexture2D dummy = SharedTexture2D(new Texture2D);
dummy->resize( glm::uvec2(4,4) );
return dummy;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment