mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Impeller] null check vertex buffer. (flutter/engine#49915)
Tested: currently broken test!
This commit is contained in:
parent
cbcce599fc
commit
99cfd9db3f
@ -468,7 +468,7 @@ void RenderPassVK::SetInstanceCount(size_t count) {
|
||||
// |RenderPass|
|
||||
bool RenderPassVK::SetVertexBuffer(VertexBuffer buffer) {
|
||||
vertex_count_ = buffer.vertex_count;
|
||||
if (buffer.index_type == IndexType::kUnknown) {
|
||||
if (buffer.index_type == IndexType::kUnknown || !buffer.vertex_buffer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user