open gl working properly