Skip to content

Commit a2f7555

Browse files
bderodnfield
authored andcommitted
Fix bug introduced in a476b92 which broke a bunch of tests (#15)
1 parent 9b2cbc1 commit a2f7555

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

impeller/renderer/command.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44

55
#include "impeller/renderer/command.h"
66

7+
#include "impeller/base/validation.h"
78
#include "impeller/renderer/formats.h"
89
#include "impeller/renderer/vertex_descriptor.h"
910

1011
namespace impeller {
1112

1213
bool Command::BindVertices(const VertexBuffer& buffer) {
13-
if (index_type == IndexType::kUnknown) {
14+
if (buffer.index_type == IndexType::kUnknown) {
15+
VALIDATION_LOG << "Cannot bind vertex buffer with an unknown index type.";
1416
return false;
1517
}
1618

0 commit comments

Comments
 (0)