ifdef out gl emulation when disabled