Skip to content

Commit

Permalink
Vulkan: Fix r_gamma modifications to take immediate effect when r_fbo 1
Browse files Browse the repository at this point in the history
Modifying r_gamma had no immediate effect with FBO enabled, because the pipelines were not updating.

- broken in this commit: e0d1076
  • Loading branch information
JKSunny committed Dec 7, 2023
1 parent 7863ec6 commit fb129ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions codemp/rd-vulkan/tr_cmds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ void RE_BeginFrame( stereoFrame_t stereoFrame ) {
if ( r_textureMode->modified ) {
vk_texture_mode( r_textureMode->string, qfalse );
r_textureMode->modified = qfalse;
vk_update_post_process_pipelines();
}

//
Expand All @@ -402,6 +403,7 @@ void RE_BeginFrame( stereoFrame_t stereoFrame ) {
r_dither->modified = qfalse;

R_SetColorMappings();
vk_update_post_process_pipelines();
}

if ( cl_ratioFix->modified ) {
Expand Down

0 comments on commit fb129ca

Please sign in to comment.