Vulkan/RD rasterizer now does clean exit.

This commit is contained in:
Juan Linietsky 2019-07-29 18:19:31 -03:00
parent b52a2f3dfa
commit dc3b47f3ab
5 changed files with 61 additions and 14 deletions

View file

@ -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);
}
}
/////////////////////////////////////