Skip to content

Commit

Permalink
Fixed issue #66
Browse files Browse the repository at this point in the history
  • Loading branch information
Canming Huang committed Nov 8, 2021
1 parent 911bf15 commit 1395c59
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ private void DrawToTexture(Texture texture, Annotation[] annotations, Texture2D
Texture2D tmp = new Texture2D(texture.width, texture.height, GraphicsFormat.R8G8B8A8_SRGB, texture.mipmapCount, TextureCreationFlags.None);
Graphics.CopyTexture(texture, tmp);
_drawableTexture.SetPixels32(tmp.GetPixels32());
Destroy(tmp);
}

foreach (Annotation annotation in annotations)
Expand Down

0 comments on commit 1395c59

Please sign in to comment.