From a8cc68f6b9141c3870441633d2801451bb9577df Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 14 Jan 2024 10:27:55 +0300 Subject: [PATCH] ref: gl: fix ripple water is being blurry with gl_texture_nearest after startup --- ref/gl/gl_warp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ref/gl/gl_warp.c b/ref/gl/gl_warp.c index 30bdf06c..74fbb43c 100644 --- a/ref/gl/gl_warp.c +++ b/ref/gl/gl_warp.c @@ -883,6 +883,10 @@ void R_InitRipples( void ) memset( pic.buffer, 0, pic.size ); g_ripple.rippletexturenum = GL_LoadTextureInternal( "*rippletex", &pic, TF_NOMIPMAP ); + + // need to set proper tex params for TF_NOMIPMAP texture, + // as during upload it fails TF_NEAREST check and gets blurry even with gl_texture_nearest 1 + R_UpdateRippleTexParams(); } static void R_SwapBufs( void )