dispframe: initialize color clamping, for and palettes after loading

This commit is contained in:
Flyinghead 2018-12-13 09:37:11 +01:00
parent a3cba92665
commit fea5f05b20
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,11 @@ void dc_run()
double t0 = os_GetSeconds(); double t0 = os_GetSeconds();
TA_context*ctx = read_frame(frame_path); TA_context*ctx = read_frame(frame_path);
ctx->rend.fog_clamp_min = FOG_CLAMP_MIN;
ctx->rend.fog_clamp_max = FOG_CLAMP_MAX;
double t1 = os_GetSeconds(); double t1 = os_GetSeconds();
fog_needs_update = true;
pal_needs_update = true;
printf("Loaded context in %g ms\n", (t1 - t0) * 1000); printf("Loaded context in %g ms\n", (t1 - t0) * 1000);
while(renderer_enabled) while(renderer_enabled)