Fix assert on gfx resource cleanup

This commit is contained in:
Mikko Pulkki
2020-03-30 14:51:14 +03:00
committed by Mikko Pulkki
parent 488e550895
commit a6ba6c0e85

View File

@@ -61,8 +61,8 @@ Context::Context(RendererBackend& backend_)
Context::~Context() {
if (cleanupOnDestruction) {
reset();
assert(stats.isZero());
}
assert(stats.isZero());
}
void Context::initializeExtensions(const std::function<gl::ProcAddress(const char*)>& getProcAddress) {