Skip to content

Commit 953b288

Browse files
committed
update C# SDL3 bindings
1 parent 03ca3b5 commit 953b288

2 files changed

Lines changed: 367 additions & 57 deletions

File tree

Framework/Internal/ImageData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public void Encode(Stream stream, Formats format)
133133
{
134134
// write png
135135
var mem = SDL_IOFromDynamicMem();
136-
SDL_SavePNG_IO(surface, mem, false);
136+
SDL_SavePNG_IO(new nint(surface), mem, false);
137137

138138
// write data to stream
139139
var length = SDL_GetIOSize(mem);

0 commit comments

Comments
 (0)