renderer: clear texture cache after deleting interlace texture
This commit is contained in:
@@ -109,11 +109,6 @@ QVariant Renderer::GetDefaultShader()
|
||||
|
||||
void Renderer::Destroy()
|
||||
{
|
||||
for (auto it=texture_cache_.begin(); it!=texture_cache_.end(); it++) {
|
||||
DestroyNativeTexture(it->handle);
|
||||
}
|
||||
texture_cache_.clear();
|
||||
|
||||
if (!default_shader_.isNull()) {
|
||||
DestroyNativeShader(default_shader_);
|
||||
default_shader_.clear();
|
||||
@@ -126,6 +121,11 @@ void Renderer::Destroy()
|
||||
interlace_texture_.clear();
|
||||
}
|
||||
|
||||
for (auto it=texture_cache_.begin(); it!=texture_cache_.end(); it++) {
|
||||
DestroyNativeTexture(it->handle);
|
||||
}
|
||||
texture_cache_.clear();
|
||||
|
||||
DestroyInternal();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user