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:
andrewlewis 2022-01-10 10:24:31 +00:00 committed by bachinger
parent 055df87c8b
commit ede93022c7

View file

@ -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. */