Skip to content

Commit

Permalink
chore: fix android rotation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Dec 18, 2024
1 parent 16d477a commit 0526a92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ts/Renderer/RendererCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class RendererCache extends IRendererCache {
this.videoFrame.vBuffer = Buffer.alloc(vStride! * height!);
if (AgoraEnv.encodeAlpha) {
this.videoFrame.alphaBuffer = Buffer.alloc(
this.videoFrame.yStride! * this.videoFrame.height!
this.videoFrame.width! * this.videoFrame.height!
);
}

Expand Down
2 changes: 1 addition & 1 deletion ts/Renderer/WebGLRenderer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export class WebGLRenderer extends IRenderer {
if (alphaBuffer) {
textures[this.gl.TEXTURE3] = {
texture: this.aTexture,
stride: yStride!,
stride: width!,
height: height!,
pixels: alphaBuffer,
};
Expand Down

0 comments on commit 0526a92

Please sign in to comment.