diff --git a/src/window/Window.cpp b/src/window/Window.cpp index d6b0eee3..d59137fb 100644 --- a/src/window/Window.cpp +++ b/src/window/Window.cpp @@ -77,7 +77,7 @@ bool Window::isFocused() } void window_size_callback(GLFWwindow*, int width, int height) { - if (Window::isFocused()) { + if (Window::isFocused() && width && height) { glViewport(0, 0, width, height); Window::width = width; Window::height = height;