Always bind LUT Texture for Tonemapping

This commit is contained in:
korenkonder
2024-06-26 13:40:08 +03:00
parent 4e81ce6fa8
commit 63cef4962d
+2 -6
View File
@@ -1610,12 +1610,8 @@ namespace rndr {
gl_state_bind_sampler(0, rctx->render_samplers[1]);
gl_state_active_bind_texture_2d(1, reduce_tex_draw);
gl_state_bind_sampler(1, rctx->render_samplers[2]);
if (tone_map == TONE_MAP_YCC_EXPONENT) {
gl_state_active_bind_texture_2d(2, tonemap_lut_texture);
gl_state_bind_sampler(2, rctx->render_samplers[0]);
}
gl_state_active_bind_texture_2d(2, tonemap_lut_texture);
gl_state_bind_sampler(2, rctx->render_samplers[0]);
gl_state_active_bind_texture_2d(3, exposure_tex);
gl_state_bind_sampler(3, rctx->render_samplers[3]);