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:
Corentin Wallez 2018-08-13 08:24:01 +02:00 committed by Corentin Wallez
parent 649e2feda4
commit a5696c7aa5
1 changed files with 4 additions and 2 deletions

View File

@ -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();
}