You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Win10 allows a window to be resized so that it has client area height of 0.
Both SDL_GetWindowSize and SDL_GetWindowSizeInPixels report incorrect values when that happens which I believe to be caused by the fix to the previous issue.
I noticed this when following a Vulkan tutorial I attempted to skip rendering if the window had either width or height of 0 but since the functions reported the last known values rather than the "empty size" the check never succeeded. The Vulkan API reported correct dimensions for the VkSurfaceKHR (width 0, height 0). That later caused the validation layers to report an error when creating framebuffers of that size.
I checked the miminum window size using SDL_GetWindowMinimumSize which reported width 0, height 0.
At the time of posting this I realized I used SDL_GetWindowSizeInPixels in the code below so please let me know if I should provide samples using SDL_GetWindowSize.
Both SDL_GetWindowSize and SDL_GetWindowSizeInPixels report incorrect values when that happens which I believe to be caused by the fix to the previous issue.
I noticed this when following a Vulkan tutorial I attempted to skip rendering if the window had either width or height of 0 but since the functions reported the last known values rather than the "empty size" the check never succeeded. The Vulkan API reported correct dimensions for the VkSurfaceKHR (width 0, height 0). That later caused the validation layers to report an error when creating framebuffers of that size.
I checked the miminum window size using SDL_GetWindowMinimumSize which reported width 0, height 0.
Originally posted by @GitAxeon in #7419 (comment)
The text was updated successfully, but these errors were encountered: