Skip to content

Commit

Permalink
Reset input capacity when setting external shader program
Browse files Browse the repository at this point in the history
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 bef3d51.

PiperOrigin-RevId: 637869215
  • Loading branch information
kim-vde authored and Copybara-Service committed May 28, 2024
1 parent 9622411 commit 0baa4ff
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ public void releaseAllRegisteredFrames() {
@Override
public void setSamplingGlShaderProgram(GlShaderProgram samplingGlShaderProgram) {
checkState(samplingGlShaderProgram instanceof ExternalShaderProgram);
externalShaderProgramInputCapacity.set(0);
this.externalShaderProgram = (ExternalShaderProgram) samplingGlShaderProgram;
}

Expand Down

0 comments on commit 0baa4ff

Please sign in to comment.