Vulkan: Reset viewport and scissor
This fixes the graphics bugs for me using MoltenVK:
Before:
After:
Fixes: https://github.com/ddnet/ddnet/issues/8680
Checklist
- [ ] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test (especially base/) or added coverage to integration test
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with ASan+UBSan or valgrind's memcheck (optional)
Are you using the latest MoltenVK version?
If so, I'll open a bug report on their repo now
[mvk-info] MoltenVK version 1.2.7, supporting Vulkan version 1.2.275.
But I see no viewport/scissor related changes after that: https://github.com/KhronosGroup/MoltenVK/blob/main/Docs/Whats_New.md
@def- how do I reproduce the bug?
Never mind I managed to reproduce. Compile with -DVULKAN=ON then launch the client and change to vulkan in graphics settings. I did that on an m1 mac with macOS 15.4 (24E248). And also see stuff missing in the server browser.