Skip to content

Commit

Permalink
draw air before "beforesimdraw" event is fired, so that graphics work…
Browse files Browse the repository at this point in the history
… in velocity / pressure display modes
  • Loading branch information
jacob1 committed Feb 10, 2024
1 parent a250894 commit f4b836d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/graphics/RendererBasic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ constexpr auto VIDYRES = WINDOWH;

void Renderer::RenderBegin()
{
draw_air();
draw_grav();
DrawWalls();
render_parts();
Expand Down
1 change: 1 addition & 0 deletions src/gui/game/GameView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit f4b836d

Please sign in to comment.