mirror of https://github.com/auygun/kaliber.git
crash fix
This commit is contained in:
parent
a7ea09b149
commit
aca0213b0a
|
@ -21,7 +21,7 @@
|
|||
#include "engine/shader_source.h"
|
||||
#include "third_party/texture_compressor/texture_compressor.h"
|
||||
|
||||
#define USE_VULKAN_RENDERER 0
|
||||
#define USE_VULKAN_RENDERER 1
|
||||
|
||||
using namespace base;
|
||||
|
||||
|
@ -50,6 +50,7 @@ Engine::Engine(Platform* platform)
|
|||
|
||||
Engine::~Engine() {
|
||||
LOG << "Shutting down engine.";
|
||||
|
||||
game_.reset();
|
||||
stats_.reset();
|
||||
textures_.clear();
|
||||
|
|
|
@ -145,7 +145,9 @@ bool Platform::CreateWindow(int width, int height) {
|
|||
void Platform::DestroyWindow() {
|
||||
if (display_) {
|
||||
XDestroyWindow(display_, window_);
|
||||
#if 0 // TODO: Figure out why XCloseDisplay is crashing
|
||||
XCloseDisplay(display_);
|
||||
#endif
|
||||
display_ = nullptr;
|
||||
window_ = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue