Go to /etc/X11/XF86Config-4(using your favorite text editor) and remove the # from the beginning of the line # load glx. Next, scroll down to Graphics Device Section and change driver 'nv' to 'nvidia'.
You may also need to remove the lines #load glcore and # load dri.