mirror of
https://github.com/samsonjs/media.git
synced 2026-04-26 14:57:47 +00:00
Effect: Call glFinish before providing VFP output texture
glFinish should be called before reading from a texture, to make sure it's been properly rendered to. PiperOrigin-RevId: 527302946
This commit is contained in:
parent
85e449cd87
commit
fdeeaba9d8
1 changed files with 1 additions and 0 deletions
|
|
@ -341,6 +341,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||||
outputTexture.fboId, outputTexture.width, outputTexture.height);
|
outputTexture.fboId, outputTexture.width, outputTexture.height);
|
||||||
GlUtil.clearOutputFrame();
|
GlUtil.clearOutputFrame();
|
||||||
checkNotNull(defaultShaderProgram).drawFrame(inputTexture.texId, presentationTimeUs);
|
checkNotNull(defaultShaderProgram).drawFrame(inputTexture.texId, presentationTimeUs);
|
||||||
|
GLES20.glFinish();
|
||||||
checkNotNull(textureOutputListener).onTextureRendered(outputTexture, presentationTimeUs);
|
checkNotNull(textureOutputListener).onTextureRendered(outputTexture, presentationTimeUs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue