mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08: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
@ -341,6 +341,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
outputTexture.fboId, outputTexture.width, outputTexture.height);
|
||||
GlUtil.clearOutputFrame();
|
||||
checkNotNull(defaultShaderProgram).drawFrame(inputTexture.texId, presentationTimeUs);
|
||||
GLES20.glFinish();
|
||||
checkNotNull(textureOutputListener).onTextureRendered(outputTexture, presentationTimeUs);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user