glx: replace assertion with conditional

See fd.o bug 26832.
1 file changed