three_dart icon indicating copy to clipboard operation
three_dart copied to clipboard

Crashed on windows 10 with 1050Ti

Open Remering opened this issue 2 years ago • 1 comments

Example code is https://github.com/Remering/three_dart_playground, may be I don't know how to use this library, please help me. Thanks a lot!

Remering avatar Sep 03 '23 13:09 Remering

Hi @Remering,

Not sure if you have solved your issue yet, but I noticed in your viewer.dart code you have

    if (kIsWeb) {
      await glPlugin.prepareContext();
    }

please make this

    Future.delayed(const Duration(milliseconds: 100), () async {
      await glPlugin.prepareContext();
    });

this might fix the crashing issue since prepareContext is needed for all platforms.

Hope this helps.

Knightro63 avatar Sep 13 '23 21:09 Knightro63