Skip to content

Commit

Permalink
fix: warning in ScaleTexture because of Unity update
Browse files Browse the repository at this point in the history
  • Loading branch information
MSchmoecker committed Nov 12, 2023
1 parent 231bd2f commit 537f212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JotunnLib/Utils/ShaderHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public static void ScaleTexture(Texture2D texture, int width)
copyTexture.Apply();

int height = (int)Math.Round((float)width * texture.height / texture.width);
texture.Resize(width, height);
texture.Reinitialize(width, height);
texture.Apply();

Color[] rpixels = texture.GetPixels(0);
Expand Down

0 comments on commit 537f212

Please sign in to comment.