Commit cf2c1d95 authored by Laszlo Agocs's avatar Laszlo Agocs

Avoid leak and temporarily break the sharedresource example

parent 289e1cee
......@@ -394,8 +394,9 @@ void Window::releaseResources()
m_sc = nullptr;
}
// ### this is wrong
if (activeRhiCount == 1) {
delete tex;
tex->releaseAndDestroy();
tex = nullptr;
}
delete m_rhi;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment