mono/MonoGame — pull request #897 by shilrobot (2012-10-21 04:41:14+00:00)
Title: Change vertex structs to have StructLayout(LayoutKind.Sequential, Pack=1)

Here is a patch for issue #896. This adds an attribute [StructLayout(LayoutKind.Sequential, Pack=1)] to all Vertex structs to ensure they are always packed tightly and in-order in memory, so they always match the vertex declarations.

Specific issue I ran into was VertexPositionTexture was packed differently on 64-bit Linux than usual.