ref: gl: fix ripple water is being blurry with gl_texture_nearest after startup

This commit is contained in:
Alibek Omarov 2024-01-14 10:27:55 +03:00
parent 2af0adb629
commit a8cc68f6b9

View File

@ -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 )