**System Information**
Operating system: Ubuntu 18.04
Graphics card: Radeon RX Vega 64
**Blender Version**
Broken: rBebcea3029d
**Short description of error**
Background image is positioned incorrectly when doing a viewport render.
**Exact steps for others to reproduce the error**
1. Open the .blend file.
2. Make sure you are in camera view.
2. In the 3D view: `View` -> `Viewport Render`.
3. See how the 3D scene is drawn from the perspective of the camera, but the image is drawn from the actual viewport camera.
{F6773398}
@hjalti found this problem and needs a fix. I tried to fix this for a while now but could not found a good way to solve the issue yet.
Basically `view3d_camera_border` just has to know when `rv3d` does not contain the actual camera data...
@campbellbarton, can you have a look maybe (I think you wrote the initial drawing code for this)?
{F6773443}