added gl dependency to device