Skip to content

Commit

Permalink
ref: gl: always scale down texture to 64x64, like sw.dll does
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Oct 30, 2023
1 parent d75dca6 commit 21c4d1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ref/gl/gl_warp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_max( 2, RIPPLES_CACHEWIDTH / image->width );

pixels = (uint32_t *)glt->original->buffer;
v = MostSignificantBit( image->width );
Expand Down

0 comments on commit 21c4d1b

Please sign in to comment.