diff --git a/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs b/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs index a8743169ef..71d2b89de0 100644 --- a/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs +++ b/OpenRA.Platforms.Default/Sdl2GraphicsDevice.cs @@ -135,7 +135,7 @@ namespace OpenRA.Platforms.Default if (surface == IntPtr.Zero) throw new InvalidDataException("Failed to create surface: {0}".F(SDL.SDL_GetError())); - var sur = (SDL2.SDL.SDL_Surface)Marshal.PtrToStructure(surface, typeof(SDL2.SDL.SDL_Surface)); + var sur = (SDL.SDL_Surface)Marshal.PtrToStructure(surface, typeof(SDL.SDL_Surface)); Marshal.Copy(data, 0, sur.pixels, data.Length); // This call very occasionally fails on Windows, but often works when retried.