mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 07:03:14 -04:00
glow painter improvements (#1406)
* Add viewport info to PaintCallback * glow: be more explicit with more state * glow: Refactor VAO
This commit is contained in:
@@ -75,7 +75,7 @@ impl MyApp {
|
||||
|
||||
let callback = egui::PaintCallback {
|
||||
rect,
|
||||
callback: std::sync::Arc::new(move |render_ctx| {
|
||||
callback: std::sync::Arc::new(move |_info, render_ctx| {
|
||||
if let Some(painter) = render_ctx.downcast_ref::<egui_glow::Painter>() {
|
||||
rotating_triangle.lock().paint(painter.gl(), angle);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user