aboutsummaryrefslogtreecommitdiffstats
path: root/yage/core/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'yage/core/window.cpp')
-rw-r--r--yage/core/window.cpp5
1 files changed, 0 insertions, 5 deletions
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);