Replace rather than update Metal buffers (#1842)
This commit is contained in:
@@ -78,6 +78,9 @@ Context::Context(RendererBackend& backend_)
|
||||
Context::~Context() noexcept {
|
||||
if (cleanupOnDestruction) {
|
||||
reset();
|
||||
#if !defined(NDEBUG)
|
||||
Log::Debug(Event::General, "Rendering Stats:\n" + stats.toString("\n"));
|
||||
#endif
|
||||
assert(stats.isZero());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user