fix: 修复 scene 销毁导致的 bug (#1210)

* feat: 去处事件节流

* fix: 修复 scene 销毁时候存在的 bug
This commit is contained in:
YiQianYao 2022-06-30 14:50:13 +08:00 committed by GitHub
parent 57eb8a21ed
commit fe314c22dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ export default class ReglRendererService implements IRendererService {
? framebuffer ? framebuffer
: (framebuffer as ReglFramebuffer).get(); : (framebuffer as ReglFramebuffer).get();
this.gl.clear(reglClearOptions); this.gl?.clear(reglClearOptions);
}; };
public viewport = ({ public viewport = ({