Don't call functions in asserts, they get compiled out in release...
This commit is contained in:
parent
45743642a9
commit
b9ba525de1
9 changed files with 23 additions and 12 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue