mirror of
https://github.com/samsonjs/media.git
synced 2026-04-07 11:35:46 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue