Skip to content

Commit

Permalink
Merge pull request #15059 from RaananW/oversightsAreTheBest
Browse files Browse the repository at this point in the history
The disposed engine needs to be the thinengine
  • Loading branch information
sebavan authored May 3, 2024
2 parents 31530f7 + 5ae4771 commit f7a1c3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/dev/core/src/Misc/dumpTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export class DumpTools {
EngineStore.OnEnginesDisposedObservable.add((e) => {
// guaranteed to run when no other instances are left
// only dispose if it's not the current engine
if (e !== engine && !e.isDisposed) {
e.dispose();
if (engine && e !== engine && !engine.isDisposed) {
engine.dispose();
}
});
engine.getCaps().parallelShaderCompile = undefined;
Expand Down
6 changes: 4 additions & 2 deletions packages/tools/tests/test/visualization/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -787,12 +787,14 @@
{
"title": "GLTF Serializer Morph Target Animation Group",
"playgroundId": "#T087A8#29",
"referenceImage": "gltfSerializerMorphTargetAnimationGroup.png"
"referenceImage": "gltfSerializerMorphTargetAnimationGroup.png",
"excludedEngines": ["webgl1"]
},
{
"title": "GLTF Serializer KHR materials clearcoat",
"playgroundId": "#9N6CLU#23",
"referenceImage": "glTFSerializerKhrMaterialsClearcoat.png"
"referenceImage": "glTFSerializerKhrMaterialsClearcoat.png",
"excludedEngines": ["webgl1"]
},
{
"title": "GLTF Serializer KHR gpu instancing",
Expand Down

0 comments on commit f7a1c3f

Please sign in to comment.