Zero-initialize SDL_GPUDevice

(cherry picked from commit 86da08b0be)
This commit is contained in:
Mathieu Eyraud authored and Sam Lantinga committed 2025-10-01 07:23:41 -07:00
1 parent 5d47efe7fb
commit 9fafba49dc
1 file changed
+1 -1
+1 -1
View File
@@ -11779,7 +11779,7 @@ static SDL_GPUDevice *VULKAN_CreateDevice(bool debugMode, bool preferLowPower, S
}
// FIXME: just move this into this function
result = (SDL_GPUDevice *)SDL_malloc(sizeof(SDL_GPUDevice));
result = (SDL_GPUDevice *)SDL_calloc(1, sizeof(SDL_GPUDevice));
ASSIGN_DRIVER(VULKAN)
result->driverData = (SDL_GPURenderer *)renderer;