                 vertexAttributes: vertexAttributes,
                 pipeline: pipeline,
                 sampler: sampler,
-                indexBuffer: indexBuffer)
+                indexBuffer: indexBuffer,
+                indexCount: indices.count
+            )
             
             context.cache["imageryLayer_reproject"] = reproject
         }

        let pipeline: RenderPipeline
        let sampler: Sampler
        let indexBuffer: Buffer
        
        init (vertexBuffer: Buffer, vertexAttributes: [VertexAttributes], pipeline: RenderPipeline, sampler: Sampler, indexBuffer: Buffer) {
            self.vertexBuffer = vertexBuffer
            self.vertexAttributes = vertexAttributes
            self.pipeline = pipeline
            self.sampler = sampler
            self.indexBuffer = indexBuffer
        }
        
        deinit {

        var attributes = reproject.vertexAttributes
        attributes[1].buffer = webMercatorTBuffer
        
        let vertexArray = VertexArray(attributes: attributes, vertexCount: 128, indexBuffer: reproject.indexBuffer, indexCount: reproject.indexCount)
        
        let textureUsage: TextureUsage = [.RenderTarget, .ShaderRead]
        
