Skip to content

Update ViewportAdapter Docs To Note Initializing In Game1 Causes Null Excecption Later #130

Description

@AristurtleDev

Description

If a viewport adapter is initialized in the game1 constructor, the GraphicsDevice instance that it uses isn't instantiated yet, so it receives a null instance. The documentation already shows it correctly being done in the Game.Initialize method, but a note should be added to explain that's where to do it and why not to do it in the Game.ctor

Steps to Reproduce

none

Expected Behavior

none

Actual Behavior

none

Configuration

none

Other Information

Discovered from discord conversation: https://discord.com/channels/465739026700173312/509740842936696832/1482783806292361387

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions