Skip to content

Commit

Permalink
Drop on incomplete command buffer writes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kangz committed Feb 12, 2015
1 parent ed1ce79 commit 88d0838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/framework/CommandBufferHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ namespace IPC {
buffer.LoadWriterData();
if (!buffer.CanRead(sizeof(uint32_t))) {
if (buffer.GetMaxReadLength() != 0) {
logs.Warn("Command buffer for %s probably had an incomplete length write", name);
Sys::Drop("Command buffer for %s had an incomplete length write", name);
}
return false;
}
Expand All @@ -93,7 +93,7 @@ namespace IPC {
buffer.Read((char*)&size, sizeof(uint32_t));

if (!buffer.CanRead(size + sizeof(uint32_t))) {
logs.Warn("Command buffer for %s probably had an incomplete message write", name);
Sys::Drop("Command buffer for %s had an incomplete message write", name);
return false;
}
std::vector<char>& readerData = reader.GetData();
Expand Down

0 comments on commit 88d0838

Please sign in to comment.