diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-15 15:20:31 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-15 15:20:31 +0300 |
commit | 090290dbf4b9f7e586640b9b757bb8a2df711b3a (patch) | |
tree | 7621959f41c46012e598b7f2d34bf486991599e7 /src | |
parent | fb4a7d1042eae16f99b40bcd79bd2ff0911e56cb (diff) |
VisBuf: Invalidating the buffer
The state of the VisBuf should be fully cleared when invalidating.
IssueID #1
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/visbuf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/visbuf.c b/src/ui/visbuf.c index 64d861c6..8a66c300 100644 --- a/src/ui/visbuf.c +++ b/src/ui/visbuf.c | |||
@@ -37,6 +37,7 @@ void deinit_VisBuf(iVisBuf *d) { | |||
37 | 37 | ||
38 | void invalidate_VisBuf(iVisBuf *d) { | 38 | void invalidate_VisBuf(iVisBuf *d) { |
39 | iForIndices(i, d->buffers) { | 39 | iForIndices(i, d->buffers) { |
40 | d->buffers[i].origin = i * d->texSize.y; | ||
40 | iZap(d->buffers[i].validRange); | 41 | iZap(d->buffers[i].validRange); |
41 | } | 42 | } |
42 | } | 43 | } |