gpu: Fixed uninitialized variable in SDL_AcquireGPUCommandBuffer().

Fixes #13191.
This commit is contained in:
Ryan C. Gordon 2025-07-11 18:18:47 -04:00
parent a81cf566f4
commit 190afc0f4f
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

@ -1566,6 +1566,7 @@ SDL_GPUCommandBuffer *SDL_AcquireGPUCommandBuffer(
commandBufferHeader->copy_pass.in_progress = false;
commandBufferHeader->swapchain_texture_acquired = false;
commandBufferHeader->submitted = false;
commandBufferHeader->ignore_render_pass_texture_validation = false;
SDL_zeroa(commandBufferHeader->render_pass.vertex_sampler_bound);
SDL_zeroa(commandBufferHeader->render_pass.vertex_storage_texture_bound);
SDL_zeroa(commandBufferHeader->render_pass.vertex_storage_buffer_bound);