My projeclt has been build on my PC which has a great graphics card etc. so it runs the XNA hiDef Profile. Howecver, when i Publish the project, and install it to my latop i get the error that the graphics chip cannot handle hiDef.
So Solution, i wanna target HiDef if it can support HiDef, else support Reac, so i have this code:
protected override void Initialize()
{
graphics.PreferredBackBufferWidth = WindowSize.X;
graphics.PreferredBackBufferHeight = WindowSize.Y;
graphics.IsFullScreen = isFullScreen;
if (graphics.GraphicsDevice.Adapter.IsProfileSupported(GraphicsProfile.HiDef))
graphics.GraphicsProfile = GraphicsProfile.HiDef;
else
graphics.GraphicsProfile = GraphicsProfile.Reach;
graphics.ApplyChanges();
this.Window.Title = GameTitle + " " + Version;
this.IsMouseVisible = true;
base.Initialize();
}
However, this doesn't run on my laptop either, comes back with the same Error :/
two ideas here:
1/ My laptop doesn't support HiDef, and the code i wrote is wrong or in the wrong place?
2/ My Laptop supports it so it passes the check for hiDef and then XNA throws a fit.
In my eyes Scenario 1 is the best, Anyone else have any thoughts? Has anyone managed to do this in one of there games?
NOTE: My Laptop doesn't have Visual C# etc and the XNA Framework installed, it only has what the Published Files had Installed (the XNA Framework Redistributable packet i think)
- Any help Much appreciated
- Alex