Fix bug introduced in a476b92 which broke a bunch of tests (flutter/engine#15)

This commit is contained in:
Brandon DeRosier
2022-02-17 23:44:14 -08:00
committed by Dan Field
parent bbbbc30701
commit a2170f1720

View File

@@ -4,13 +4,15 @@
#include "impeller/renderer/command.h"
#include "impeller/base/validation.h"
#include "impeller/renderer/formats.h"
#include "impeller/renderer/vertex_descriptor.h"
namespace impeller {
bool Command::BindVertices(const VertexBuffer& buffer) {
if (index_type == IndexType::kUnknown) {
if (buffer.index_type == IndexType::kUnknown) {
VALIDATION_LOG << "Cannot bind vertex buffer with an unknown index type.";
return false;
}