forked from firka/flutter
Zero initialize command primitive type
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user