diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index 9db2adc..c3daeb2 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -387205,6 +387205,7 @@ void ddraw_flush() { void ddraw_flush_projview(mat44 proj, mat44 view) { do_once dd_rs = renderstate(); + dd_rs.depth_test_enabled = !dd_ontop; dd_rs.cull_face_enabled = 0; glActiveTexture(GL_TEXTURE0); diff --git a/engine/split/v4k_renderdd.c b/engine/split/v4k_renderdd.c index 63b7de3..158177d 100644 --- a/engine/split/v4k_renderdd.c +++ b/engine/split/v4k_renderdd.c @@ -68,6 +68,7 @@ void ddraw_flush() { void ddraw_flush_projview(mat44 proj, mat44 view) { do_once dd_rs = renderstate(); + dd_rs.depth_test_enabled = !dd_ontop; dd_rs.cull_face_enabled = 0; glActiveTexture(GL_TEXTURE0); diff --git a/engine/v4k.c b/engine/v4k.c index 5a9e82c..539c35c 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -21745,6 +21745,7 @@ void ddraw_flush() { void ddraw_flush_projview(mat44 proj, mat44 view) { do_once dd_rs = renderstate(); + dd_rs.depth_test_enabled = !dd_ontop; dd_rs.cull_face_enabled = 0; glActiveTexture(GL_TEXTURE0);