From f338b4d15b57770d922e187b7a57d25fbf379b62 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Mon, 30 Apr 2018 23:00:50 +0100 Subject: Adding support for entity component systems. --- yage/core/window.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'yage/core/window.cpp') diff --git a/yage/core/window.cpp b/yage/core/window.cpp index c55b1ad1..e899d38a 100644 --- a/yage/core/window.cpp +++ b/yage/core/window.cpp @@ -34,8 +34,6 @@ void framebuffer_size_callback(GLFWwindow *window, int width, int height) } // namespace -Window::Window() = default; - Window::~Window() { glfwDestroyWindow(window_); @@ -49,6 +47,7 @@ void Window::create(std::string window_name, int width, int height) window_ = glfwCreateWindow(width, height, window_name.c_str(), nullptr, nullptr); + if (window_ == nullptr) { throw runtime_error("GLFW Window creation failed"); } -- cgit