stride3d / stride

Stride (formerly Xenko), a free and open-source cross-platform C# game engine.
https://stride3d.net
MIT License
6.65k stars 957 forks source link

[ANDROID] Build for Android platform fails when using Graphic Profile other than Direct3D 9.2 or Direct3D 9.3 #2480

Open Feralnex opened 1 month ago

Feralnex commented 1 month ago

Release Type: Official Release

Version: v4.2.0.2232

Platform(s): Project build for Android platform

Describe the bug If You have selected Default Graphic Profile for android platform other than Direct3D 9.2 or Direct3D 9.3 and You have any Sprite sheet in Assets folder, then when You try to build project for Android platform You've got null reference exceptions and build fails.

To Reproduce Steps to reproduce the behavior:

  1. Create project for Android platform
  2. Add Sprite sheet to Assets (e.g. created from png)
  3. Set Default Graphic Profile to any other than Direct3D 9.2 or Direct3D 9.3 under Rendering in GameSettings (or override only for Android platform)
  4. Try to build project for Android platform (Debug/Release doesn't matter)
  5. Failed to build the project

Expected behavior Be able to use Graphic Profiles other than Direct3D 9.2 or Direct3D 9.3 only and successfully build the project.

Screenshots Image Image

Log and callstacks StrideAndroidPlatformBuildFailed.txt

Additional context Builds just fine when using Direct3D 9.2 or Direct3D 9.3