mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 15:16:16 +00:00
Assert HandleCommands succeeds
This commit is contained in:
committed by
Kai Ninomiya
parent
d5c1ecaf64
commit
21006bbe6f
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "SampleUtils.h"
|
||||
|
||||
#include "common/Assert.h"
|
||||
#include "common/Platform.h"
|
||||
#include "utils/BackendBinding.h"
|
||||
#include "wire/TerribleCommandBuffer.h"
|
||||
@@ -212,8 +213,8 @@ bool InitSample(int argc, const char** argv) {
|
||||
|
||||
void DoFlush() {
|
||||
if (cmdBufType == CmdBufType::Terrible) {
|
||||
c2sBuf->Flush();
|
||||
s2cBuf->Flush();
|
||||
ASSERT(c2sBuf->Flush());
|
||||
ASSERT(s2cBuf->Flush());
|
||||
}
|
||||
glfwPollEvents();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user