Jump to content

NullEngine dispose throws error


Hersir
 Share

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...