SWRAST Error with Tigr

I am trying to use Tigr, a small portable graphics library based on GL. How can I fix the error about swrast?

Repl link: https://replit.com/@jojocoding/CarAutomaton

import tigr

  CellTypes = enum Car, Empty, Spawner

let world = [Empty, Empty, Empty, Empty, Empty, Empty, Empty]

var screen = window(32 * world.len, 32, "CarAutomaton", 0)

while screen.closed == 0:
  screen.clear(RGB(0x80, 0x90, 0xa0))


libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  23
  Current serial number in output stream:  24
Error: execution of an external program failed: '/home/runner/CarAutomaton/main'

By the way I’m using Nim.