Move WebGL2's drawFrame() function to animate() function

This commit is contained in:
redphx
2024-10-26 21:53:03 +07:00
parent 4a8f66f2a1
commit 5653914d19
4 changed files with 75 additions and 67 deletions

View File

@@ -65,7 +65,7 @@ export class ScreenshotManager {
const canvasContext = this.canvasContext;
if ($player instanceof HTMLCanvasElement) {
streamPlayer.getWebGL2Player().drawFrame(true);
streamPlayer.getWebGL2Player().forceDrawFrame();
}
canvasContext.drawImage($player, 0, 0, $canvas.width, $canvas.height);