From 7f63f09cb343bc29b16bd8dbc99b7530d797dbc9 Mon Sep 17 00:00:00 2001 From: Joshua Groves Date: Sat, 23 Jun 2018 21:56:47 -0600 Subject: [PATCH] Exclusive end range --- libportability-gfx/src/impls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libportability-gfx/src/impls.rs b/libportability-gfx/src/impls.rs index 4e0b1f6..7343107 100644 --- a/libportability-gfx/src/impls.rs +++ b/libportability-gfx/src/impls.rs @@ -3749,7 +3749,7 @@ pub extern "C" fn gfxGetPhysicalDeviceSurfaceCapabilitiesKHR( let output = VkSurfaceCapabilitiesKHR { minImageCount: caps.image_count.start, - maxImageCount: caps.image_count.end, + maxImageCount: caps.image_count.end - 1, currentExtent: match caps.current_extent { Some(extent) => conv::extent2d_from_hal(extent), None => VkExtent2D {