mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 21:50:18 +02:00
draw air before "beforesimdraw" event is fired, so that graphics work in velocity / pressure display modes
This commit is contained in:
@@ -11,7 +11,6 @@ constexpr auto VIDYRES = WINDOWH;
|
||||
|
||||
void Renderer::RenderBegin()
|
||||
{
|
||||
draw_air();
|
||||
draw_grav();
|
||||
DrawWalls();
|
||||
render_parts();
|
||||
|
@@ -2134,6 +2134,7 @@ void GameView::OnDraw()
|
||||
auto &sd = SimulationData::Ref();
|
||||
std::unique_lock lk(sd.elementGraphicsMx);
|
||||
ren->clearScreen();
|
||||
ren->draw_air();
|
||||
c->BeforeSimDraw();
|
||||
ren->RenderBegin();
|
||||
ren->SetSample(c->PointTranslate(currentMouse));
|
||||
|
Reference in New Issue
Block a user