Skip to content

Commit

Permalink
Fix bug introduced in a476b92 which broke a bunch of tests (flutter#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdero authored and dnfield committed Apr 27, 2022
1 parent 9b2cbc1 commit a2f7555
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion impeller/renderer/command.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a2f7555

Please sign in to comment.