Skip to content

Conversation

@claudiofreda
Copy link
Contributor

@claudiofreda claudiofreda commented Oct 31, 2025

While using the sdl3 bindings to port a SDL3 app from C to Zig, I noticed that the SDL_Vulkan_CreateSurface function was using the old SDL2 signature, which doesn't include the allocator callbacks as the third argument.

This was causing the surface pointer (third argument in SDL2, fourth in SDL3) to be interpreted as an allocator pointer, with fun shenaningans ensuing.

Copy link
Member

@hazeycode hazeycode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hazeycode hazeycode merged commit 6b81d08 into zig-gamedev:main Nov 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants