GPU: Add swapchain dimension out params (#11003)

This commit is contained in:
Evan Hemsley authored and GitHub committed 2024-09-30 10:23:19 -07:00
1 parent b3388d5753
commit afdf325fb4
11 files changed
+347 -285

No files matched your search

+1 -1
View File
@@ -82,7 +82,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
SDL_GPUTexture *swapchainTexture;
if (!SDL_AcquireGPUSwapchainTexture(cmdbuf, state->windows[0], &swapchainTexture)) {
if (!SDL_AcquireGPUSwapchainTexture(cmdbuf, state->windows[0], &swapchainTexture, NULL, NULL)) {
SDL_Log("SDL_AcquireGPUSwapchainTexture failed: %s", SDL_GetError());
return SDL_APP_FAILURE;
}