Skip to content

Commit

Permalink
Merge branch 'ascpixi:main' into bit32
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalStrehovsky committed Sep 16, 2023
2 parents c38e983 + 5764b6b commit a5a97da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/SmolSharp.Ocean/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ static unsafe uint RenderThread(nint hwnd)
var compressedFragShader = OceanShader.FragmentShader();
var fragBuffer = Kernel32.GlobalAlloc(default, 8192);
nint hDcmp;
ulong fragLength;
nint fragLength;
bool success;

success = CompressAPI.CreateDecompressor(CompressAlgorithm.MSZip, default, &hDcmp);
success = CompressAPI.Decompress(
hDcmp,
compressedFragShader.AsPointer(),
(ulong)compressedFragShader.Length,
compressedFragShader.Length,
fragBuffer,
8192,
&fragLength
Expand Down
4 changes: 2 additions & 2 deletions src/SmolSharp.Win32/CompressAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ public static extern bool CreateDecompressor(
public static extern bool Decompress(
nint decompressorHandle,
void* compressedData,
ulong compressedDataSize,
nint compressedDataSize,
void* uncompressedBuffer,
nint uncompressedBufferSize,
ulong* uncompressedDataSize
nint* uncompressedDataSize
);
}

Expand Down

0 comments on commit a5a97da

Please sign in to comment.