Skip to content

fix: D3D12/METAL_INTERNAL_InitBlitResources not zero-initializing SDL_GPUSamplerCreateInfo - #16588

Closed
sleeptightAnsiC wants to merge 1 commit into
libsdl-org:mainfrom
sleeptightAnsiC:fix_zeroinit_createinfo
Closed

sleeptightAnsiC wants to merge 1 commit into
libsdl-org:mainfrom
sleeptightAnsiC:fix_zeroinit_createinfo

Conversation

@sleeptightAnsiC

Copy link
Copy Markdown

This fixes the problem mentioned in #16583 (comment), and similar one in D3D12 backend. See linked Issue for more info.

I grepped for all occurrences of SDL_GPU[a-zA-Z_]*Info but couldn't find any other place where this would be a problem. Sadly, I don't have any hardware to test the Metal backend.

  • I confirm that I am the author of this code and release it to the SDL project under the zlib license. This contribution does not contain code from other sources, including code generated by a Large Language Model ("AI"). I hate clankers...

…_GPUSamplerCreateInfo

which was creating a non-zero invalid property ID, which isn't allowed by SDL

Refs: libsdl-org#16583
@sleeptightAnsiC

sleeptightAnsiC commented Oct 25, 2026 •

Copy link
Copy Markdown
Author

Yuck! I was 1min late... dedb925

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.

1 participant