Fixed color scale when rendering to an sRGB render target

This commit is contained in:
Sam Lantinga 2024-09-11 13:59:14 -07:00
parent 3f7f6f624b
commit 4d135fb696
2 changed files with 18 additions and 7 deletions

View file

@ -267,6 +267,7 @@ struct SDL_Renderer
float SDR_white_point;
float HDR_headroom;
float desired_color_scale;
float color_scale;
SDL_FColor color; /**< Color for drawing operations values */
SDL_BlendMode blendMode; /**< The drawing blend mode */
@ -282,7 +283,6 @@ struct SDL_Renderer
SDL_Rect last_queued_cliprect;
bool last_queued_cliprect_enabled;
bool color_queued;
bool color_scale_queued;
bool viewport_queued;
bool cliprect_queued;