Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

mg 3.6 crashes over 4096px

$
0
0

@An_J wrote:

Hello all,

1.
Loading texture bigger than 4096
using (var stream = new FileStream("Content/4097x1000.png", FileMode.Open)){
_tex = (Texture2D.FromStream(GraphicsDevice, stream));
}

causes:
System.InvalidOperationException: This image format is not supported ---> SharpDX.SharpDXException: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments]

2.
Setting window size bigger than 4096:
_graphics.PreferredBackBufferWidth = 4097;
causes:
Microsoft.Xna.Framework.Graphics.NoSuitableGraphicsDeviceException: Failed to create graphics device! ---> SharpDX.SharpDXException: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments]

Texture size is not a big problem -- I can slice bitmaps to 4096 segments.
The main issues for me is the limit for window size - I need more than 4096 in width... much more. Is there any way to fix it?

Posts: 6

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles