Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alicealys committed Dec 19, 2023
1 parent 50ca5bc commit 91f2738
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/client/component/materials.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions src/common/utils/string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 91f2738

Please sign in to comment.