Tech Off Post

Single Post Permalink

View Thread: Discuss the Beginning Game Development series on Coding 4 Fun
  • User profile image

    I believe the following is a better fix for the InvalidCallException in the device creation call (since the fix mentioned previously didn't fix it for me, but the code below does).

    #if DEBUG
                presentParams.Windowed = true;
                presentParams.Windowed = false;
                presentParams.BackBufferFormat = Manager.Adapters.Default.CurrentDisplayMode.Format;
                presentParams.BackBufferHeight = Manager.Adapters.Default.CurrentDisplayMode.Height;
                presentParams.BackBufferWidth = Manager.Adapters.Default.CurrentDisplayMode.Width;