Fix flipped check for debug overlays

This commit is contained in:
Henrik Rydgård 2023-08-13 23:50:30 +02:00
parent bec9c5611e
commit 870c45edd7

View file

@ -169,11 +169,11 @@ void DrawDebugOverlay(UIContext *ctx, const Bounds &bounds, DebugOverlay overlay
switch (overlay) {
case DebugOverlay::DEBUG_STATS:
if (!inGame)
if (inGame)
DrawDebugStats(ctx, ctx->GetLayoutBounds());
break;
case DebugOverlay::FRAME_GRAPH:
if (!inGame)
if (inGame)
DrawFrameTimes(ctx, ctx->GetLayoutBounds());
break;
case DebugOverlay::FRAME_TIMING: