mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Reset input capacity when setting external shader program
Before this CL, externalShaderProgramInputCapacity was not reset when
the external shader program was reset (which occurs when the
InputSwitcher switches to an input with a different ColorInfo). This is
due to a regression introduced in bef3d518d2
.
PiperOrigin-RevId: 637869215
This commit is contained in:
parent
9622411b50
commit
0baa4ff621
@ -191,6 +191,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
@Override
|
||||
public void setSamplingGlShaderProgram(GlShaderProgram samplingGlShaderProgram) {
|
||||
checkState(samplingGlShaderProgram instanceof ExternalShaderProgram);
|
||||
externalShaderProgramInputCapacity.set(0);
|
||||
this.externalShaderProgram = (ExternalShaderProgram) samplingGlShaderProgram;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user