-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Milestone
Description
Within SDL_UnlockTexture, VULKAN_EnsureCommandBuffer gets called. Within that function rendererData->commandBuffers may be dereferenced, and it might do so while it is currently NULL, causing a crash.
This seems to happen whenever minimize occurs, with SDL_RenderPresent -> (SDL_LockTexture ->) SDL_UnlockTexture being done (rendererData->commandBuffers is set to NULL in SDL_RenderPresent due to VK_ERROR_OUT_OF_DATE_KHR error path, SDL_UnlockTexture proceeding to call VULKAN_EnsureCommandBuffer and dereference rendererData->commandBuffers. This code pattern is currently done within my own app.