Untested port to work with desktop GL