From ede93022c7c878433364017c8dfab90ff08313ce Mon Sep 17 00:00:00 2001 From: andrewlewis Date: Mon, 10 Jan 2022 10:24:31 +0000 Subject: [PATCH] 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 --- .../media3/exoplayer/video/spherical/ProjectionRenderer.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/spherical/ProjectionRenderer.java b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/spherical/ProjectionRenderer.java index c208c58748..b02cf870d6 100644 --- a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/spherical/ProjectionRenderer.java +++ b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/spherical/ProjectionRenderer.java @@ -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. */