From 6a7950ff8224589013dd6a2230faadb9c9c4be55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Mon, 15 Apr 2024 14:28:40 +0200 Subject: [PATCH] gfx: respect dd_ontop --- engine/joint/v4k.h | 2 +- engine/split/v4k_renderdd.c | 2 +- engine/v4k.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index ecc4d97..a9b4194 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -387206,7 +387206,7 @@ void ddraw_flush() { void ddraw_flush_projview(mat44 proj, mat44 view) { do_once dd_rs = renderstate(); - dd_rs.depth_test_enabled = 0; + dd_rs.depth_test_enabled = !dd_ontop; glActiveTexture(GL_TEXTURE0); mat44 mvp; diff --git a/engine/split/v4k_renderdd.c b/engine/split/v4k_renderdd.c index a952f43..60c6e2a 100644 --- a/engine/split/v4k_renderdd.c +++ b/engine/split/v4k_renderdd.c @@ -69,7 +69,7 @@ void ddraw_flush() { void ddraw_flush_projview(mat44 proj, mat44 view) { do_once dd_rs = renderstate(); - dd_rs.depth_test_enabled = 0; + dd_rs.depth_test_enabled = !dd_ontop; glActiveTexture(GL_TEXTURE0); mat44 mvp; diff --git a/engine/v4k.c b/engine/v4k.c index 65f82df..2487a0e 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -21746,7 +21746,7 @@ void ddraw_flush() { void ddraw_flush_projview(mat44 proj, mat44 view) { do_once dd_rs = renderstate(); - dd_rs.depth_test_enabled = 0; + dd_rs.depth_test_enabled = !dd_ontop; glActiveTexture(GL_TEXTURE0); mat44 mvp;