mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-10 05:57:51 +00:00
Fix samples not working in Release builds
Calls to flush command buffers were wrapped in ASSERT() which caused them to be skipped in Release builds.
This commit is contained in:
committed by
Corentin Wallez
parent
649e2feda4
commit
a5696c7aa5
@@ -212,8 +212,10 @@ bool InitSample(int argc, const char** argv) {
|
|||||||
|
|
||||||
void DoFlush() {
|
void DoFlush() {
|
||||||
if (cmdBufType == CmdBufType::Terrible) {
|
if (cmdBufType == CmdBufType::Terrible) {
|
||||||
ASSERT(c2sBuf->Flush());
|
bool c2sSuccess = c2sBuf->Flush();
|
||||||
ASSERT(s2cBuf->Flush());
|
bool s2cSuccess = s2cBuf->Flush();
|
||||||
|
|
||||||
|
ASSERT(c2sSuccess && s2cSuccess);
|
||||||
}
|
}
|
||||||
glfwPollEvents();
|
glfwPollEvents();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user