remove texture auto_destroy flag

This commit is contained in:
2019-12-01 18:52:41 +01:00
parent f6c1194cb3
commit 94cf227704
7 changed files with 4 additions and 19 deletions

View File

@@ -40,7 +40,7 @@ void NodeDialogExportPPBR::init_controls()
btn_header_clear = find<NodeButton>("header-clear");
btn_header_clear->on_click = [this] (Node*) {
m_header_image.reset();
img_header->tex->destroy();
img_header->tex.reset();
txt_header_descr->SetVisibility(true);
};
btn_header_gen = find<NodeButton>("header-gen");
@@ -85,4 +85,5 @@ void NodeDialogExportPPBR::added(Node* parent)
NodeBorder::added(parent);
if (added_to_root())
mouse_capture();
txt_author->key_capture();
}