change texture wrap mode to clamp

This commit is contained in:
xChipseq committed 2025-10-11 00:46:35 +02:00
1 parent 8fd142a92e
commit 3220a4a820
1 file changed
+4 -1
+4 -1
View File
@@ -19,7 +19,10 @@ public static class SpriteTools
/// <exception cref="ArgumentException">Thrown when the resource cannot be found in the specified assembly.</exception>
public static Texture2D LoadTextureFromResourcePath(string resourcePath, Assembly assembly)
{
var tex = new Texture2D(1, 1, TextureFormat.ARGB32, false);
var tex = new Texture2D(1, 1, TextureFormat.ARGB32, false)
{
wrapMode = TextureWrapMode.Clamp,
};
var myStream = assembly.GetManifestResourceStream(resourcePath);
if (myStream != null)
{