[ui gtk] Fix init, resize and destroy

Prevent Vulkan Swap before display context is assigned.
Prevent resize while fullscreen (like in windows impl).
Use superclass Resize implementation to reduce code duplication.
Remove recursive call to GTKWindow::Close().
Destroy xcb window after superclass Close().
Set hwnd to null after closing on windows implementation.
This commit is contained in:
Sandy Carter
2019-01-27 11:39:21 -05:00
parent 0b5ff8332e
commit 271c91e115
3 changed files with 15 additions and 11 deletions

View File

@@ -260,7 +260,7 @@ VulkanGraphicsSystem::CreateCommandProcessor() {
}
void VulkanGraphicsSystem::Swap(xe::ui::UIEvent* e) {
if (!command_processor_) {
if (!command_processor_ || !display_context_) {
return;
}