From 10e4151ecf9e592cda246a2531dfb691783e03d0 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 19 Nov 2026 14:04:12 +0100 Subject: [PATCH] fix gl skydome "cap" so turns out the texture coords for the dome cap were never initialized at all, which is what caused the weird "stretchy & stripey" effect at times just init it to the sky textures middle --- src/hardware/hw_main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hardware/hw_main.cpp b/src/hardware/hw_main.cpp index c748cf466..4bd65c122 100644 --- a/src/hardware/hw_main.cpp +++ b/src/hardware/hw_main.cpp @@ -5681,6 +5681,11 @@ static void HWR_SkyDomeVertex(gl_sky_t *sky, gl_skyvertex_t *vbo, int r, int c, else vbo->v = 1.0f + ((float)(sky->rows - r) / (float)sky->rows) + 0.5f; } + else + { + vbo->u = 0.5f / sky->width; + vbo->v = 0.5f / sky->height; + } if (r != 4) {