mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Zero initialize command primitive type
This commit is contained in:
parent
ef4981b4d5
commit
c6d8bc3c8d
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user