Fix issue with framegrabbing where GL parameters were not set