Skip to content

Commit

Permalink
SDL: Add support for FNA3D_BACKBUFFER_SCALE_NEAREST
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Feb 5, 2025
1 parent c2bb1f5 commit 6d5fae2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/FNA3D_Driver_SDL.c
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,9 @@ static void SDLGPU_SwapBuffers(
blitInfo.clear_color.b = 0;
blitInfo.clear_color.a = 0;
blitInfo.flip_mode = SDL_FLIP_NONE;
blitInfo.filter = SDL_GPU_FILTER_LINEAR;
blitInfo.filter = SDL_GetHintBoolean("FNA3D_BACKBUFFER_SCALE_NEAREST", false) ?
SDL_GPU_FILTER_NEAREST :
SDL_GPU_FILTER_LINEAR;
blitInfo.cycle = false;

SDL_BlitGPUTexture(
Expand Down

0 comments on commit 6d5fae2

Please sign in to comment.