Fix border rendering for eevee + stop passing render result around
authorDalai Felinto <dfelinto@gmail.com>
Fri, 23 Feb 2018 16:26:28 +0000 (13:26 -0300)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 23 Feb 2018 16:26:30 +0000 (13:26 -0300)
commit0305fc30b3ba6a1b24e2c9c182ae2e76d553f341
treeaf33fb70469ba354bef5642234b31094969e7a3e
parent51279107491472a37d3abfb8b21b8bbc24e185e3
Fix border rendering for eevee + stop passing render result around

Technically the original issue is that xof/yof in render result is calculated
for drawing border render. So a simpler patch could be:

```
- rr->xof = re->disprect.xmin;
+ rr->xof = re->disprect.xmin + BLI_rcti_cent_x(&re->disprect) - (re->winx / 2);
```

However everywhere in the code we are getting border directly from re->disprect
which we may as well do here too.

Besides I'm taking this as a chance to get rid of RenderResult in the internal
loop of eevee, to help prepare the code to the upcoming rendering pipeline
changes.
source/blender/draw/engines/eevee/eevee_engine.c
source/blender/draw/engines/eevee/eevee_private.h
source/blender/draw/engines/eevee/eevee_render.c
source/blender/draw/intern/DRW_render.h
source/blender/draw/intern/draw_manager.c