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

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

No files matched your search

+2 -1
View File
@@ -52,7 +52,8 @@ public:
GLDummyGraphicsContext() {
CheckGLExtensions();
draw_ = Draw::T3DCreateGLContext();
assert(draw_->CreatePresets());
bool success = draw_->CreatePresets();
assert(success);
}
~GLDummyGraphicsContext() { delete draw_; }