fix UICanvas garbage-on-empty

This commit is contained in:
zetaPRIME 2017-05-11 18:01:51 -04:00
parent e183532747
commit 8ae734680d
2 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ void UICanvas::PreDraw() {
drawContext->Clear();
GFXManager::PushContext(drawContext.get());
GFXManager::PushOffsetAdd(-scrollOffset);
GFXManager::PrepareForDrawing(); // force clear to take so you don't get garbage if nothing renders
VRect vr = ViewportRect();
@ -51,4 +52,3 @@ void UICanvas::PreDraw() {
void UICanvas::Draw() {
static_cast<DrawContextCanvas*>(drawContext.get())->Draw(rect + GFXManager::GetOffset());
}

View File

@ -3,6 +3,7 @@
roadmap to v0.5.1 {
- make font-not-found not outright crash the app (hopefully)
- fix UICanvas garbage-on-empty
make asset gc actually sweep every 5sec
maybe entirely replace clearing with transparent knockout on bind?
implement more blend modes??