Merge pull request #111 from thefiddler/sdl_stack_fix

[SDL] Fixed a stack corruption issue on win32
This commit is contained in:
thefiddler 2014-05-07 13:24:22 +02:00
commit c4fa8dcc44

View file

@ -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)]