Fix GPU screenshots with GL + threaded driver.