Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdl/render: workaround for audio playback going corrupt from calling …
…sdl.Renderer.Copy() It seems like calling the `Copy()` method with the `dst` parameter being sdl.Rect from the Go context could make audio playback from the `mix` package going corrupt (e.g. `mix.Chunk.Play(1, 0)`) especially when the `sdl.Rect` goes outside the window screen. This workaround prevents that by allocating `SDL_Rect` in the C context via a wrapper C function called `RenderCopy()`. Signed-off-by: Lilis Iskandar <[email protected]>
- Loading branch information