mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-01 09:27:39 +00:00
GPU: Add swapchain dimension out params (#11003)
This commit is contained in:
parent
b3388d5753
commit
afdf325fb4
11 changed files with 347 additions and 285 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue