If you get the error:

OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.

then install xrandr:

pacman -S xorg-xrandr

Found here.