Skip to content

Commit b3dfa7c

Browse files
committed
fix error in release-fast mode
1 parent 6be9f67 commit b3dfa7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ fn chooseSwapExtent(capabilities: c.VkSurfaceCapabilitiesKHR) c.VkExtent2D {
593593
fn createSwapChain(allocator: *Allocator) !void {
594594
var swapChainSupport = try querySwapChainSupport(allocator, physicalDevice);
595595
defer swapChainSupport.deinit();
596-
596+
597597
const surfaceFormat = chooseSwapSurfaceFormat(swapChainSupport.formats.toSlice());
598598
const presentMode = chooseSwapPresentMode(swapChainSupport.presentModes.toSlice());
599599
const extent = chooseSwapExtent(swapChainSupport.capabilities);
@@ -888,7 +888,7 @@ extern fn debugCallback(
888888
return c.VK_FALSE;
889889
}
890890

891-
fn setupDebugCallback() !void {
891+
fn setupDebugCallback() error{FailedToSetUpDebugCallback}!void {
892892
if (!enableValidationLayers) return;
893893

894894
var createInfo = c.VkDebugReportCallbackCreateInfoEXT{

0 commit comments

Comments
 (0)