Skip to content

Commit 395c8bd

Browse files
Update AotCompilerTools.cs
1 parent b142dba commit 395c8bd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/ImageSharp/Advanced/AotCompilerTools.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private static void Seed<TPixel>()
223223
}
224224

225225
/// <summary>
226-
/// Seeds every bulk operation exposed by <see cref="PixelOperations{TPixel}"/>.
226+
/// Seeds the selected <see cref="PixelOperations{TPixel}"/> methods required by Mono WASM AOT.
227227
/// </summary>
228228
/// <typeparam name="TPixel">The pixel format.</typeparam>
229229
[Preserve]
@@ -232,8 +232,7 @@ private static void AotCompilePixelOperations<TPixel>()
232232
{
233233
// These default arguments are never consumed. Direct calls are required so the IL contains the exact closed
234234
// MethodSpecs that Mono WASM AOT can otherwise miss when following static-abstract pixel dispatch indirectly.
235-
_ = PixelOperations<TPixel>.Instance;
236-
PixelOperations<TPixel> operations = default;
235+
PixelOperations<TPixel> operations = PixelOperations<TPixel>.Instance;
237236

238237
_ = operations.GetPixelTypeInfo();
239238
_ = operations.GetPixelBlender(default(GraphicsOptions));

0 commit comments

Comments
 (0)