Skip to content

Immediate crash on startup on iPad 3 running iOS 9 #7051

@dtaylorus

Description

@dtaylorus

MonoGame crashes during initialization on an iPad 3 physical device running iOS 9.

The current MonoGame initialization code incorrectly assumes that GLES 3 is available on a device if the iOS version number is 7 or higher.

In fact, some devices such as the iPad 3 do not support GLES 3, but they do support iOS versions up to 9.

The proposed fix is to first attempt to initialize GLES 3, and if that fails, fall back to GLES 2, per the Apple developer documentation (see Listing 2-1).

What version of MonoGame does the bug occur on:

  • MonoGame 3.8

What operating system are you using:

  • MacOS

What MonoGame platform are you using:

  • iOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions