dispframe: initialize color clamping, for and palettes after loading
This commit is contained in:
parent
a3cba92665
commit
fea5f05b20
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue