mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-07-23 01:02:36 +00:00
Fixed an error with goto crossing variable initialization
This commit is contained in:
@@ -1079,7 +1079,7 @@ static SDL_Texture *CreateVulkanVideoTexturePixFmtDRMPrime(VulkanVideoContext *c
|
||||
import_fd_info.handleType = VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT;
|
||||
import_fd_info.fd = dma_buf_fds[0];
|
||||
|
||||
uint32_t memoryTypeIndex = 0;
|
||||
uint32_t memoryTypeIndex;
|
||||
if (!FindMemoryIndex(context, mem_reqs.memoryTypeBits, &memoryTypeIndex)) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user