Skip to content

Commit

Permalink
Only filter water warp texture when AA is enabled (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Jul 15, 2024
1 parent 8e7a4d7 commit 33ec4a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Quake/gl_rmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -1797,8 +1797,8 @@ void R_WarpScaleView (void)
else
GL_Uniform4fFunc (1, 0.f, 0.f, 0.f, 0.f);
GL_BindNative (GL_TEXTURE0, GL_TEXTURE_2D, msaa ? framebufs.resolved_scene.color_tex : framebufs.scene.color_tex);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, water_warp ? GL_LINEAR : GL_NEAREST);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, water_warp ? GL_LINEAR : GL_NEAREST);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, water_warp && msaa ? GL_LINEAR : GL_NEAREST);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, water_warp && msaa ? GL_LINEAR : GL_NEAREST);

glDrawArrays (GL_TRIANGLES, 0, 3);

Expand Down

0 comments on commit 33ec4a2

Please sign in to comment.