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;