draw air before "beforesimdraw" event is fired, so that graphics work in velocity / pressure display modes

This commit is contained in:
jacob1 2024-02-09 23:36:29 -05:00
parent a250894a12
commit f4b836deb1
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995
2 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,6 @@ constexpr auto VIDYRES = WINDOWH;
void Renderer::RenderBegin()
{
draw_air();
draw_grav();
DrawWalls();
render_parts();

View File

@ -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));