Ubuntu - GPU - OpenGL - Check whether 3D acceleration is working

glxinfo  | grep rendering

returns:

direct rendering: Yes

NOTE: if 3D acceleration is working, then the output should be: direct rendering: Yes.