glx: Move dpy and scr fields out of direct rendering conditional