Glxinfo

glxinfo is a command to see the status of GLX. The most common use is to check if direct rendering is enabled, but it also displays information about visuals GLX can use and their properties, OpenGL extensions that can be used, information about OpenGL implementation, etc.

Also See

 * glxgears - Simple test program for GLX and OpenGL