Skip to content

Commit 688a4eb

Browse files
committed
fixup! feat: Xplat support for image loading and saving from memory
1 parent 8775e85 commit 688a4eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/engine/Stride/Graphics/StandardImageHelper.Desktop.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static unsafe Image LoadFromMemory(IntPtr pSource, int size, bool makeACo
2525
//Temp copy of FreeImageBitmap
2626

2727
var bitmapData = bitmap.Copy(sourceArea).ConvertTo32Bits();
28-
var image = Image.New2D(bitmap.Width, bitmap.Height, 1, PixelFormat.B8G8R8A8_UNorm, 1, bitmapData.Stride);
28+
var image = Image.New2D(bitmap.Width, bitmap.Height, 1, PixelFormat.B8G8R8A8_UNorm, 1, 0);
2929

3030
try
3131
{

0 commit comments

Comments
 (0)