Skip to content

Conversation

ManifoldFR
Copy link
Contributor

This PR fixes the indexing in the loop setting the clear values passed to the VkRenderPassBeginInfo struct.

Description

We fix an indexing error where i was allowed to exceed the length of colorTargetInfos which is numColorTargets. The solution is to set the index of clearValues separately (it should also be aligned with the index of the full color attachments array according to the docs).

Copy link
Collaborator

@flibitijibibo flibitijibibo left a comment

Choose a reason for hiding this comment

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

Makes sense to me but will wait for one more review just in case.

@slouken slouken added this to the 3.2.24 milestone Sep 16, 2025
@slouken slouken merged commit 8bc4e02 into libsdl-org:main Sep 16, 2025
41 checks passed
@slouken
Copy link
Collaborator

slouken commented Sep 16, 2025

Merged, thanks!

@ManifoldFR ManifoldFR deleted the gpu/vulkan-clear-value-resolve-fix branch September 16, 2025 15:51
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.

4 participants