From 5fe329fe40c296a4a3dce9bc5543419ac954e4b0 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Wed, 10 Jan 2018 18:37:40 +0000 Subject: [Engine] [Docs] Adding documentation and continuing work on ECS. --- yage/core/window.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'yage/core/window.cpp') diff --git a/yage/core/window.cpp b/yage/core/window.cpp index 84cd66d7..c55b1ad1 100644 --- a/yage/core/window.cpp +++ b/yage/core/window.cpp @@ -39,15 +39,10 @@ Window::Window() = default; Window::~Window() { glfwDestroyWindow(window_); - glfwTerminate(); } void Window::create(std::string window_name, int width, int height) { - if (glfwInit() == GLFW_FALSE) { - throw runtime_error("GLFW Initialisation failed"); - } - glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 5); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); -- cgit