Skip to content

Commit

Permalink
fixup! Initial C++ engine and Typescript web package
Browse files Browse the repository at this point in the history
  • Loading branch information
juztamau5 committed Mar 13, 2024
1 parent 4ab0f0f commit cbd5bda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frontend/src/components/RetroEngineComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const RetroEngineComponent: React.FC = () => {
}
};

// Initial setup for fullscreen canvas
// Initial setup for full size canvas
updateCanvasSize();

// Set up ResizeObserver to adjust canvas size to the size of the container div
Expand Down Expand Up @@ -83,6 +83,7 @@ const RetroEngineComponent: React.FC = () => {

// Deinitialize engine if it has been initialized
engineInstance?.deinitialize();
engineInstance?.delete();
};
}, []);

Expand Down

0 comments on commit cbd5bda

Please sign in to comment.