fix samples not getting updated
This commit is contained in:
parent
382e58b40c
commit
16226f81a7
1 changed files with 1 additions and 0 deletions
|
|
@ -149,6 +149,7 @@ fn int main()
|
|||
if (catch excuse = _x) {
|
||||
io::eprintfn("Error reading luminance: %s", excuse);
|
||||
} else {
|
||||
luminance_samples[idx] = _x;
|
||||
idx = (idx + 1) % MEDIAN_SAMPLES;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue