You need to enable opengl first, as noted on ; 

https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=128464
--
buZz