mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-25 06:38:47 -05:00
Current code assumes that the overflow texture and the render target always share the same color format including transfer function. This assumption is incorrect however as OBS might use a 16-bit floating point texture with a linear gamma transfer function when a high-bitrate format is selected. On top of that OBS Studio wants rendering code to ensure that linear color blending is used throughout the application. The DrawOverflow function had not been updated to reflect this. This change brings it in line with other functions involved in preview rendering, which enable automatic sRGB conversion for the framebuffer and the texture used in the fragment shader.
70 KiB
70 KiB