[Impeller] null check vertex buffer. (flutter/engine#49915)

Tested: currently broken test!
This commit is contained in:
Jonah Williams
2024-01-19 17:26:40 -08:00
committed by GitHub
parent cbcce599fc
commit 99cfd9db3f

View File

@@ -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;
}