浏览代码

Merge pull request #7938 from rvadhavk/dynamic-texture-fix

Fix error where this._engine.createDynamicTexture is undefined in VideoTexture
sebavan 5 年之前
父节点
当前提交
307c996ef6
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      dist/preview release/what's new.md
  2. 1 0
      src/Materials/Textures/videoTexture.ts

+ 1 - 0
dist/preview release/what's new.md

@@ -105,6 +105,7 @@
 - Fix mesh winding order inversion when merging meshes with overridden side orientation ([drigax](https://github.com/Drigax))
 - Fixed a rendering issue with GearVR in WebXR mode ([RaananW](https://github.com/RaananW))
 - Fixed error when downloading async createScene function in playground ([#7926](https://github.com/BabylonJS/Babylon.js/issues/7926)) ([RaananW](https://github.com/RaananW))
+- Fix issue where ThinEngine.prototype.createDynamicEngine is undefined when using VideoTexture with es6 packages ([rvadhavk](https://github.com/rvadhavk))
 
 ## Breaking changes
 

+ 1 - 0
src/Materials/Textures/videoTexture.ts

@@ -7,6 +7,7 @@ import { Engine } from "../../Engines/engine";
 import { Texture } from "../../Materials/Textures/texture";
 
 import "../../Engines/Extensions/engine.videoTexture";
+import "../../Engines/Extensions/engine.dynamicTexture";
 
 /**
  * Settings for finer control over video usage