Vulkan/RD rasterizer now does clean exit.
This commit is contained in:
parent
b52a2f3dfa
commit
dc3b47f3ab
5 changed files with 61 additions and 14 deletions
|
|
@ -147,7 +147,6 @@ ViewportTexture::ViewportTexture() {
|
|||
|
||||
vp = NULL;
|
||||
set_local_to_scene(true);
|
||||
proxy = VS::get_singleton()->texture_2d_placeholder_create();
|
||||
}
|
||||
|
||||
ViewportTexture::~ViewportTexture() {
|
||||
|
|
@ -159,7 +158,9 @@ ViewportTexture::~ViewportTexture() {
|
|||
if (proxy_ph.is_valid()) {
|
||||
VS::get_singleton()->free(proxy_ph);
|
||||
}
|
||||
VS::get_singleton()->free(proxy);
|
||||
if (proxy.is_valid()) {
|
||||
VS::get_singleton()->free(proxy);
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue