File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -593,7 +593,7 @@ fn chooseSwapExtent(capabilities: c.VkSurfaceCapabilitiesKHR) c.VkExtent2D {
593
593
fn createSwapChain (allocator : * Allocator ) ! void {
594
594
var swapChainSupport = try querySwapChainSupport (allocator , physicalDevice );
595
595
defer swapChainSupport .deinit ();
596
-
596
+
597
597
const surfaceFormat = chooseSwapSurfaceFormat (swapChainSupport .formats .toSlice ());
598
598
const presentMode = chooseSwapPresentMode (swapChainSupport .presentModes .toSlice ());
599
599
const extent = chooseSwapExtent (swapChainSupport .capabilities );
@@ -888,7 +888,7 @@ extern fn debugCallback(
888
888
return c .VK_FALSE ;
889
889
}
890
890
891
- fn setupDebugCallback () ! void {
891
+ fn setupDebugCallback () error { FailedToSetUpDebugCallback } ! void {
892
892
if (! enableValidationLayers ) return ;
893
893
894
894
var createInfo = c.VkDebugReportCallbackCreateInfoEXT {
You can’t perform that action at this time.
0 commit comments