[Media3][Shader] Reset the composite RGB matrix upon update

Since the composite matrix is ultimately rewritten to, we need to ensure it's cleared (to identity) before update.

Test plan: use an effect as a time based approach and see that the effect no longer clips

PiperOrigin-RevId: 518886623
This commit is contained in:
Googler 2023-03-23 16:47:25 +00:00 committed by Tianyi Feng
parent 69cece1d82
commit 67f8fbf3bd

View file

@ -537,6 +537,8 @@ import java.util.List;
return;
}
GlUtil.setToIdentity(compositeRgbMatrixArray);
for (int i = 0; i < rgbMatrices.size(); i++) {
Matrix.multiplyMM(
/* result= */ tempResultMatrix,