Fix GL filtering algorithm used when experimental fix is disabled

When working on SurfaceTexture crop fix, we accidentally switched
to GL_NEAREST resampling.

PiperOrigin-RevId: 677751819
This commit is contained in:
dancho 2024-09-23 05:32:17 -07:00 committed by Copybara-Service
parent be4d31ba87
commit 17e1d37112

View File

@ -473,7 +473,7 @@ public final class GlProgram {
? GLES20.GL_TEXTURE_2D ? GLES20.GL_TEXTURE_2D
: GLES11Ext.GL_TEXTURE_EXTERNAL_OES, : GLES11Ext.GL_TEXTURE_EXTERNAL_OES,
texIdValue, texIdValue,
type == GLES20.GL_SAMPLER_2D && !externalTexturesRequireNearestSampling type == GLES20.GL_SAMPLER_2D || !externalTexturesRequireNearestSampling
? GLES20.GL_LINEAR ? GLES20.GL_LINEAR
: GLES20.GL_NEAREST); : GLES20.GL_NEAREST);
GLES20.glUniform1i(location, texUnitIndex); GLES20.glUniform1i(location, texUnitIndex);