mirror of
https://github.com/zetaPRIME/libstarlight.git
synced 2025-06-25 21:22:46 +00:00
fix UICanvas garbage-on-empty
This commit is contained in:
parent
e183532747
commit
8ae734680d
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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??
|
||||
|
Loading…
x
Reference in New Issue
Block a user