mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Don't request discard, repaint is enough
This commit is contained in:
@@ -32,9 +32,8 @@ impl Ui {
|
|||||||
response.widget_state()
|
response.widget_state()
|
||||||
} else {
|
} else {
|
||||||
// We don't know the state of the widget yet, so we would style it wrong.
|
// We don't know the state of the widget yet, so we would style it wrong.
|
||||||
// Discard this pass and style it correctly in the next one.
|
// It will be styled correctly on next frame.
|
||||||
self.ctx()
|
self.ctx().request_repaint();
|
||||||
.request_discard("Widget style depends on a widget response we don't have yet");
|
|
||||||
WidgetState::default()
|
WidgetState::default()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user