mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-28 23:36:59 +00:00
Merge pull request #111 from thefiddler/sdl_stack_fix
[SDL] Fixed a stack corruption issue on win32
This commit is contained in:
commit
c4fa8dcc44
|
@ -1444,6 +1444,13 @@ namespace OpenTK.Platform.SDL2
|
|||
[FieldOffset(0)]
|
||||
public DropEvent drop;
|
||||
#endif
|
||||
|
||||
// Ensure the structure is big enough
|
||||
// This hack is necessary to ensure compatibility
|
||||
// with different SDL versions, which might have
|
||||
// different sizeof(SDL_Event).
|
||||
[FieldOffset(0)]
|
||||
private unsafe fixed byte reserved[128];
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
|
|
Loading…
Reference in a new issue