mirror of
https://github.com/zetaPRIME/libstarlight.git
synced 2025-06-26 13:42: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();
|
drawContext->Clear();
|
||||||
GFXManager::PushContext(drawContext.get());
|
GFXManager::PushContext(drawContext.get());
|
||||||
GFXManager::PushOffsetAdd(-scrollOffset);
|
GFXManager::PushOffsetAdd(-scrollOffset);
|
||||||
|
GFXManager::PrepareForDrawing(); // force clear to take so you don't get garbage if nothing renders
|
||||||
|
|
||||||
VRect vr = ViewportRect();
|
VRect vr = ViewportRect();
|
||||||
|
|
||||||
@ -51,4 +52,3 @@ void UICanvas::PreDraw() {
|
|||||||
void UICanvas::Draw() {
|
void UICanvas::Draw() {
|
||||||
static_cast<DrawContextCanvas*>(drawContext.get())->Draw(rect + GFXManager::GetOffset());
|
static_cast<DrawContextCanvas*>(drawContext.get())->Draw(rect + GFXManager::GetOffset());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
roadmap to v0.5.1 {
|
roadmap to v0.5.1 {
|
||||||
- make font-not-found not outright crash the app (hopefully)
|
- make font-not-found not outright crash the app (hopefully)
|
||||||
|
- fix UICanvas garbage-on-empty
|
||||||
make asset gc actually sweep every 5sec
|
make asset gc actually sweep every 5sec
|
||||||
maybe entirely replace clearing with transparent knockout on bind?
|
maybe entirely replace clearing with transparent knockout on bind?
|
||||||
implement more blend modes??
|
implement more blend modes??
|
||||||
|
Loading…
x
Reference in New Issue
Block a user