Hide WebGPU renderer behind EnableWebGPURenderer flag

This commit is contained in:
redphx
2025-02-04 19:29:43 +07:00
parent 7894dea5ff
commit 664e865b82
7 changed files with 24 additions and 18 deletions

View File

@@ -128,7 +128,7 @@ export class StreamPlayerManager {
this.$video.classList.remove(videoClass);
} else {
// Switch from Video -> Canvas
if (type === StreamPlayerType.WEBGPU) {
if (BX_FLAGS.EnableWebGPURenderer && type === StreamPlayerType.WEBGPU) {
this.canvasPlayer = new WebGPUPlayer(this.$video);
} else {
this.canvasPlayer = new WebGL2Player(this.$video);