Set minimum window size to 720x480

This commit is contained in:
WerWolv
2020-11-12 23:58:31 +01:00
parent 06fe80dbd5
commit 00cf8ecb18

View File

@@ -133,6 +133,8 @@ namespace hex {
Window::s_currShortcut = { key, mods };
});
glfwSetWindowSizeLimits(this->m_window, 720, 480, GLFW_DONT_CARE, GLFW_DONT_CARE);
if (gladLoadGL() == 0)
throw std::runtime_error("Failed to initialize OpenGL loader!");
}