Fix App crash on minimize
This commit implements busy waiting whenever the size of a requested framebuffer is invalid (i.e., when the height or width of the requested buffer is zero). This caused the app to crash whenever it was minimized.
This commit implements busy waiting whenever the size of a requested framebuffer is invalid (i.e., when the height or width of the requested buffer is zero). This caused the app to crash whenever it was minimized.