From 1a7dc425d28163ebe7cfdaa71453ccd9ca7b4c0f Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 16 Jul 2026 18:25:43 +0200 Subject: [PATCH] remove horizonline handling for refraction planes forgot those wont work with fofs anyways still need to look into that sometime but thisll save some perf --- src/hardware/hw_main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hardware/hw_main.cpp b/src/hardware/hw_main.cpp index 309b3ae19..cd969f802 100644 --- a/src/hardware/hw_main.cpp +++ b/src/hardware/hw_main.cpp @@ -882,8 +882,9 @@ static void HWR_RenderRefractionPlane(subsector_t *subsector, extrasubsector_t * // this does not need PF_Occlude or smth, treat it as if it wasnt there at all lol GL_DrawWaterPolygon(&Surf, planeVerts, nrPlaneVerts, PF_NoTexture|PF_Ripple); // this does not need a texture - // not sure if horizonlines even work with this lol - if (gl_maphashorizonlines && subsector && cv_glhorizonlines.value) + //FIXME: horizonlines with fofs dont work in gl for some reason! + (void)subsector; + /*if (gl_maphashorizonlines && subsector && cv_glhorizonlines.value) { // Horizon lines FOutVector horizonpts[6]; @@ -966,6 +967,7 @@ static void HWR_RenderRefractionPlane(subsector_t *subsector, extrasubsector_t * } } } + */ #undef SETUP3DVERT }