Hersir

NullEngine dispose throws error

Recommended Posts

Hi,

when I dispose  null engine after unit test get error;

// before unit test
var engine = new NullEngine();
var scene = new Scene(engine);

// after unit test is executed
engine.dispose();
TypeError: Cannot read property 'deleteProgram' of undefined
      
      at NullEngine.Object.<anonymous>.Engine._deleteProgram (node_modules/babylonjs/dist/preview release/babylon.max.js:9898:26)
      at NullEngine.Object.<anonymous>.Engine.releaseEffects (node_modules/babylonjs/dist/preview release/babylon.max.js:11840:22)
      at NullEngine.Object.<anonymous>.Engine.dispose (node_modules/babylonjs/dist/preview release/babylon.max.js:11874:18)

Using: 3.1.1 babylon

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.