From 7847bba233dec02a425d7beaa2a706b793bed2d9 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 30 Oct 2023 06:56:25 +0300 Subject: [PATCH] ref: gl: always scale down texture to 64x64, like sw.dll does --- ref/gl/gl_warp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ref/gl/gl_warp.c b/ref/gl/gl_warp.c index cf0d48a4f2..6131dcf0be 100644 --- a/ref/gl/gl_warp.c +++ b/ref/gl/gl_warp.c @@ -1012,7 +1012,9 @@ void R_UploadRipples( texture_t *image ) return; g_ripple.gl_texturenum = image->gl_texturenum; - g_ripple.texturescale = RIPPLES_CACHEWIDTH / image->width; + + // TODO: original sw.dll always draws at 64x64 + g_ripple.texturescale = Q_min( 2, RIPPLES_CACHEWIDTH / image->width ); pixels = (uint32_t *)glt->original->buffer; v = MostSignificantBit( image->width );