mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
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:
parent
be4d31ba87
commit
17e1d37112
@ -473,7 +473,7 @@ public final class GlProgram {
|
||||
? GLES20.GL_TEXTURE_2D
|
||||
: GLES11Ext.GL_TEXTURE_EXTERNAL_OES,
|
||||
texIdValue,
|
||||
type == GLES20.GL_SAMPLER_2D && !externalTexturesRequireNearestSampling
|
||||
type == GLES20.GL_SAMPLER_2D || !externalTexturesRequireNearestSampling
|
||||
? GLES20.GL_LINEAR
|
||||
: GLES20.GL_NEAREST);
|
||||
GLES20.glUniform1i(location, texUnitIndex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user