mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
zero window size on iconified fix
This commit is contained in:
parent
287b530a4c
commit
ee38f8a426
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ bool Window::isFocused()
|
||||||
}
|
}
|
||||||
|
|
||||||
void window_size_callback(GLFWwindow*, int width, int height) {
|
void window_size_callback(GLFWwindow*, int width, int height) {
|
||||||
if (Window::isFocused()) {
|
if (Window::isFocused() && width && height) {
|
||||||
glViewport(0, 0, width, height);
|
glViewport(0, 0, width, height);
|
||||||
Window::width = width;
|
Window::width = width;
|
||||||
Window::height = height;
|
Window::height = height;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue