Skip to content

Commit

Permalink
vk: precalculate gamma table early at startup
Browse files Browse the repository at this point in the history
This is likely no the right way to do this. Address this when focusing on correct gamma overall for traditional renderer. Currently this is here just to make it have some non-zero values early.
  • Loading branch information
w23 committed Dec 10, 2024
1 parent 76c0167 commit 34862e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion engine/platform/sdl/vid_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,11 @@ qboolean VID_CreateWindow( int width, int height, window_mode_t window_mode )

if( !GL_UpdateContext( ))
return false;

}
else if( glw_state.context_type == REF_VULKAN )
{
// FIXME this is probably not correct place or way to do it, just copypasting GL stuff
VID_StartupGamma();
}

#else // SDL_VERSION_ATLEAST( 2, 0, 0 )
Expand Down

0 comments on commit 34862e8

Please sign in to comment.