zero window size on iconified fix
This commit is contained in:
parent
287b530a4c
commit
ee38f8a426
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user