Skip to content

Commit

Permalink
Fix texture wrapping not updating when atlas already bound
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumprocks1 committed Nov 5, 2024
1 parent 0b4f7c1 commit 7459894
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osu.Framework/Graphics/Rendering/Renderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,10 @@ public bool BindTexture(Texture texture, int unit, WrapMode? wrapModeS, WrapMode
public bool BindTexture(INativeTexture texture, int unit = 0, WrapMode wrapModeS = WrapMode.None, WrapMode wrapModeT = WrapMode.None)
{
if (lastActiveTextureUnit == unit && lastBoundTexture[unit] == texture)
{
setWrapMode(wrapModeS, wrapModeT);
return true;
}

FlushCurrentBatch(FlushBatchSource.BindTexture);

Expand Down

0 comments on commit 7459894

Please sign in to comment.