fix update email
This commit is contained in:
@@ -827,7 +827,11 @@ function SceneReadySignal({ onReady }: { onReady?: () => void }) {
|
||||
};
|
||||
|
||||
try {
|
||||
const compile = renderer.compileAsync
|
||||
const hasParallelExtension =
|
||||
typeof renderer.getContext === "function" &&
|
||||
!!renderer.getContext()?.getExtension?.("KHR_parallel_shader_compile");
|
||||
|
||||
const compile = (typeof renderer.compileAsync === "function" && hasParallelExtension)
|
||||
? renderer.compileAsync(scene, camera)
|
||||
: Promise.resolve().then(() => renderer.compile(scene, camera));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user