We can use the following command to find out which OpenGL library is actually used:
ldd `which retroarch` |grep gl
For GameShell,when program need to load a dynamic library,it searches the paths which defined in
/etc/ld.so.conf.d/00-arm-linux-gnueabihf.conf
one by one,util the required library be found.
So a path defined in top of this file has higher priority then bellow,this is the trick GameShell v0.4 can switch between Lima and FBTurbo.There is another thing need to be mentioned in GPU Driver switching is modesetting driver.