try remove window size limits
This commit is contained in:
parent
b151529437
commit
4ccbe2d0c2
@ -192,7 +192,7 @@ namespace VE
|
|||||||
|
|
||||||
void glfw::set_window_callback()
|
void glfw::set_window_callback()
|
||||||
{
|
{
|
||||||
glfwSetWindowSizeLimits(m_win, m_win_data.m_width, m_win_data.m_height, GLFW_DONT_CARE, GLFW_DONT_CARE);
|
// glfwSetWindowSizeLimits(m_win, m_win_data.m_width, m_win_data.m_height, GLFW_DONT_CARE, GLFW_DONT_CARE);
|
||||||
|
|
||||||
glfwSetWindowSizeCallback(m_win, [](GLFWwindow* w, int width, int height)
|
glfwSetWindowSizeCallback(m_win, [](GLFWwindow* w, int width, int height)
|
||||||
{
|
{
|
||||||
@ -217,6 +217,8 @@ namespace VE
|
|||||||
event e{ event_type::WINDOW_FOCUS, focused };
|
event e{ event_type::WINDOW_FOCUS, focused };
|
||||||
d->execute(e);
|
d->execute(e);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void glfw::set_opengl()
|
void glfw::set_opengl()
|
||||||
|
Loading…
Reference in New Issue
Block a user