mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Fix spherical scene rendering
The draw method was disabling vertex attrib arrays but not re-enabling them. Remove the call to disable the vertex attrib arrays so that then remain enabled after the program is created. Manually verified by setting the surface type to spherical in the demo app and playing a spherical sample video. Issue: google/ExoPlayer#9782 PiperOrigin-RevId: 420707503
This commit is contained in:
parent
055df87c8b
commit
ede93022c7
1 changed files with 0 additions and 3 deletions
|
|
@ -178,9 +178,6 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
|||
// Render.
|
||||
GLES20.glDrawArrays(meshData.drawMode, /* first= */ 0, meshData.vertexCount);
|
||||
checkGlError();
|
||||
|
||||
GLES20.glDisableVertexAttribArray(positionHandle);
|
||||
GLES20.glDisableVertexAttribArray(texCoordsHandle);
|
||||
}
|
||||
|
||||
/** Cleans up GL resources. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue