Skip to content

Commit e0848ec

Browse files
committed
Fixed SDL_Vulkan_CreateSurface in sdl3 bindings using old sdl2 signature
1 parent a764b0e commit e0848ec

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/sdl3.zig

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,10 +1184,21 @@ pub const vk = struct {
11841184
}
11851185
extern fn SDL_Vulkan_GetInstanceExtensions(count: *i32) ?[*][*:0]u8;
11861186

1187-
pub fn createSurface(window: *Window, instance: Instance, surface: *anyopaque) bool {
1188-
return SDL_Vulkan_CreateSurface(window, instance, surface);
1187+
pub fn createSurface(
1188+
window: *Window,
1189+
instance: Instance,
1190+
allocator_callbacks: *anyopaque,
1191+
surface: *anyopaque,
1192+
) bool {
1193+
return SDL_Vulkan_CreateSurface(window, instance, allocator_callbacks, surface);
11891194
}
1190-
extern fn SDL_Vulkan_CreateSurface(window: *Window, instance: Instance, surface: *anyopaque) bool;
1195+
1196+
extern fn SDL_Vulkan_CreateSurface(
1197+
window: *Window,
1198+
instance: Instance,
1199+
allocator_callbacks: *anyopaque,
1200+
surface: *anyopaque,
1201+
) bool;
11911202
};
11921203

11931204
//--------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)