Skip to content

Commit

Permalink
Update for latest SDL3 ABI
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Oct 1, 2024
1 parent e1c9fd2 commit bb4e46b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/FNA3D_Driver_SDL.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ static void SDLGPU_SwapBuffers(
SDLGPU_Renderer *renderer = (SDLGPU_Renderer*) driverData;
SDL_GPUTexture *swapchainTexture;
SDL_GPUBlitInfo blitInfo;
int32_t width, height;
uint32_t width, height;
uint32_t i;

SDLGPU_INTERNAL_EndCopyPass(renderer);
Expand Down Expand Up @@ -821,10 +821,10 @@ static void SDLGPU_SwapBuffers(
if (SDL_AcquireGPUSwapchainTexture(
renderer->renderCommandBuffer,
overrideWindowHandle,
&swapchainTexture
&swapchainTexture,
&width,
&height
) && swapchainTexture != NULL) {
SDL_GetWindowSizeInPixels(overrideWindowHandle, &width, &height);

blitInfo.source.texture = renderer->fauxBackbufferColorTexture->texture;
blitInfo.source.mip_level = 0;
blitInfo.source.layer_or_depth_plane = 0;
Expand Down

0 comments on commit bb4e46b

Please sign in to comment.