Skip to content

Commit

Permalink
updated wasm render to just draw one frame
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonStorm97 committed Oct 10, 2024
1 parent b73dca7 commit 36a3418
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ int main()
#if defined(PLATFORM_WEB)
void RenderLoopCallback(void* arg)
{
static_cast<Renderer*>(arg)->UpdateDrawFrame();
static bool was_drawn = false;
if (!was_drawn) {
static_cast<Renderer*>(arg)->UpdateDrawFrame();
was_drawn = true;
}
}
#endif

0 comments on commit 36a3418

Please sign in to comment.