Change dllcvarname check to gl_driver check