Skip to content

Commit

Permalink
Compress QR code texture
Browse files Browse the repository at this point in the history
  • Loading branch information
skibitsky committed Jun 6, 2024
1 parent 09ae99f commit 84b1ff3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Packages/com.walletconnect.core/Runtime/Utils/QRCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public static Texture2D EncodeTexture(string textForEncoding, int width = 1024,

var texture = new Texture2D(width, height);
texture.SetPixels32(pixels);
texture.filterMode = FilterMode.Point;
texture.Compress(true);
texture.Apply();

return texture;
Expand Down

0 comments on commit 84b1ff3

Please sign in to comment.