From 4eec9cd8c4c15da4b8f825f820521060256f1ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Mon, 15 Apr 2024 14:37:21 +0200 Subject: [PATCH] gfx: fix ddraw culling --- 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 a9b4194..ddf15bd 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -387205,8 +387205,8 @@ void ddraw_flush() { void ddraw_flush_projview(mat44 proj, mat44 view) { do_once dd_rs = renderstate(); + dd_rs.cull_face_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 60c6e2a..258dd62 100644 --- a/engine/split/v4k_renderdd.c +++ b/engine/split/v4k_renderdd.c @@ -68,8 +68,8 @@ void ddraw_flush() { void ddraw_flush_projview(mat44 proj, mat44 view) { do_once dd_rs = renderstate(); + dd_rs.cull_face_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 2487a0e..0c7f162 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -21745,8 +21745,8 @@ void ddraw_flush() { void ddraw_flush_projview(mat44 proj, mat44 view) { do_once dd_rs = renderstate(); + dd_rs.cull_face_enabled = 0; - dd_rs.depth_test_enabled = !dd_ontop; glActiveTexture(GL_TEXTURE0); mat44 mvp;