Skip to content

plugins/backgroundcontrast: use the same texture format as the main framebuffer

Xaver Hugl requested to merge work/zamundaaa/fix-contrast-colormanagement into master

With color management, the main framebuffer has values over 1. As the effect used GL_RGBA8 for its fbos, all values in them got clamped to 1, making the result look much darker than it should be. To fix that, this commit changes it to use the same format as the main framebuffer, ensuring that the range of values that can be stored is the same

@davidre

Merge request reports