modification convert_opengl_point_to_layer_point