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:
parent
649e2feda4
commit
a5696c7aa5
|
@ -212,8 +212,10 @@ bool InitSample(int argc, const char** argv) {
|
|||
|
||||
void DoFlush() {
|
||||
if (cmdBufType == CmdBufType::Terrible) {
|
||||
ASSERT(c2sBuf->Flush());
|
||||
ASSERT(s2cBuf->Flush());
|
||||
bool c2sSuccess = c2sBuf->Flush();
|
||||
bool s2cSuccess = s2cBuf->Flush();
|
||||
|
||||
ASSERT(c2sSuccess && s2cSuccess);
|
||||
}
|
||||
glfwPollEvents();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue