hud hide mode fix

This commit is contained in:
MihailRis 2024-01-29 23:19:33 +03:00
parent 5eb240678e
commit 0a529ead69

View File

@ -209,7 +209,7 @@ void WorldRenderer::draw(const GfxContext& pctx, Camera* camera, bool hudVisible
skybox->unbind();
}
if (level->player->debug) {
if (hudVisible && level->player->debug) {
GfxContext ctx = pctx.sub();
ctx.depthTest(true);