summaryrefslogtreecommitdiff
path: root/src/ui/visbuf.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-15 15:20:31 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-15 15:20:31 +0300
commit090290dbf4b9f7e586640b9b757bb8a2df711b3a (patch)
tree7621959f41c46012e598b7f2d34bf486991599e7 /src/ui/visbuf.c
parentfb4a7d1042eae16f99b40bcd79bd2ff0911e56cb (diff)
VisBuf: Invalidating the buffer
The state of the VisBuf should be fully cleared when invalidating. IssueID #1
Diffstat (limited to 'src/ui/visbuf.c')
-rw-r--r--src/ui/visbuf.c1
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
38void invalidate_VisBuf(iVisBuf *d) { 38void 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}