mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
vulkan/wsi: initialise image_index to 0 in x11_manage_fifo_queues
Supresses a maybe-uninitialized warning with GCC 8.
Note: image_index should always be initialised due to the result check,
but the compiler doesn't see that.
Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
6f0647c0b2
commit
2c020dbf06
1 changed files with 1 additions and 1 deletions
|
|
@ -991,7 +991,7 @@ x11_manage_fifo_queues(void *state)
|
|||
* before that point so the client should be able to acquire any image
|
||||
* other than the currently presented one.
|
||||
*/
|
||||
uint32_t image_index;
|
||||
uint32_t image_index = 0;
|
||||
result = wsi_queue_pull(&chain->present_queue, &image_index, INT64_MAX);
|
||||
assert(result != VK_TIMEOUT);
|
||||
if (result < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue