We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a44b7e1 commit c95f743Copy full SHA for c95f743
src/FNA3D_Driver_SDL.c
@@ -2651,7 +2651,12 @@ static void SDLGPU_ResetBackbuffer(
2651
presentationParameters
2652
);
2653
2654
- swapchainComposition = SDL_GPU_SWAPCHAINCOMPOSITION_SDR;
+ swapchainComposition = (
2655
+ (presentationParameters->backBufferFormat == FNA3D_SURFACEFORMAT_COLORSRGB_EXT) ||
2656
+ (presentationParameters->backBufferFormat == FNA3D_SURFACEFORMAT_COLORBGRA_EXT)
2657
+ )
2658
+ ? SDL_GPU_SWAPCHAINCOMPOSITION_SDR_LINEAR
2659
+ : SDL_GPU_SWAPCHAINCOMPOSITION_SDR;
2660
2661
if (SDL_GetHintBoolean("FNA3D_ENABLE_HDR_COLORSPACE", false))
2662
{
0 commit comments