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

        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 {

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