Avoid a bit of code duplication in `ECAAStrategy`

This commit is contained in:
Patrick Walton 2017-09-26 13:35:41 -07:00
parent 70ab2d55f3
commit 7f84e98e6e
1 changed files with 1 additions and 8 deletions

View File

@ -302,14 +302,7 @@ export abstract class ECAAStrategy extends AntialiasingStrategy {
// Conservatively cover.
view.gl.useProgram(coverProgram.program);
view.vertexArrayObjectExt.bindVertexArrayOES(this.coverVAO);
const uniforms = coverProgram.uniforms;
view.setTransformSTUniform(uniforms, 0);
view.setFramebufferSizeUniform(uniforms);
this.bVertexPositionBufferTexture.bind(view.gl, uniforms, 0);
this.bVertexPathIDBufferTexture.bind(view.gl, uniforms, 1);
view.pathTransformBufferTextures[0].bind(view.gl, uniforms, 2);
if (view.pathHintsBufferTexture !== null)
view.pathHintsBufferTexture.bind(view.gl, uniforms, 3);
this.setAAUniforms(view, coverProgram.uniforms);
view.instancedArraysExt.drawElementsInstancedANGLE(view.gl.TRIANGLES,
6,
view.gl.UNSIGNED_BYTE,