Zero initialize command primitive type

This commit is contained in:
Chinmay Garde 2021-07-11 18:06:28 -07:00 committed by Dan Field
parent ef4981b4d5
commit c6d8bc3c8d
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@ struct Command {
BufferView index_buffer;
size_t index_count = 0u;
std::string label;
PrimitiveType primitive_type;
PrimitiveType primitive_type = PrimitiveType::kTriangle;
bool BindVertices(const VertexBuffer& buffer);

View File

@ -193,6 +193,7 @@ std::shared_ptr<Texture> Playground::CreateTextureForFixture(
return nullptr;
}
texture->SetLabel(fixture_name);
auto uploaded = texture->SetContents(image.GetAllocation()->GetMapping(),
image.GetAllocation()->GetSize());
if (!uploaded) {