Don't call functions in asserts, they get compiled out in release...

This commit is contained in:
Henrik Rydgård 2017-10-20 14:45:00 +02:00
parent 45743642a9
commit b9ba525de1
9 changed files with 23 additions and 12 deletions

View file

@ -357,7 +357,8 @@ bool WindowsGLContext::Init(HINSTANCE hInst, HWND window, std::string *error_mes
CheckGLExtensions();
draw_ = Draw::T3DCreateGLContext();
assert(draw_->CreatePresets()); // if we get this far, there will always be a GLSL compiler capable of compiling these.
bool success = draw_->CreatePresets(); // if we get this far, there will always be a GLSL compiler capable of compiling these.
assert(success);
CHECK_GL_ERROR_IF_DEBUG();
return true; // Success
}