Some fixes

This commit is contained in:
fed 2023-12-19 16:15:20 +01:00
parent 50ca5bc5c9
commit 91f2738ec9
No known key found for this signature in database
GPG Key ID: 1D2C630F04722996
2 changed files with 3 additions and 2 deletions

View File

@ -167,6 +167,7 @@ namespace materials
image->textures.map = nullptr;
image->textures.shaderView = nullptr;
image->textures.shaderViewAlternate = nullptr;
texture_table->u.image = image;
material->textureTable = texture_table;

View File

@ -134,9 +134,9 @@ namespace utils::string
std::string strip(const std::string& string)
{
std::string new_string;
new_string.resize(string.size(), 0);
new_string.resize(string.size() + 1, 0);
strip(string.data(), new_string.data(), static_cast<int>(new_string.size()));
return new_string;
return new_string.data();
}
std::string convert(const std::wstring& wstr)