Fix T59890: regression of the precision when projecting the cursor.
authormano-wii <germano.costa@ig.com.br>
Thu, 21 Mar 2019 20:02:41 +0000 (17:02 -0300)
committermano-wii <germano.costa@ig.com.br>
Thu, 21 Mar 2019 20:04:35 +0000 (17:04 -0300)
commit1f1e90a013301b4283fdf9300e7e68b7fc55d894
tree83ccc7dd3e09c2732e48488714a446ba95f8d658
parentc1da8d8986a26d33e0576e23b1e7fc69bacc69a8
Fix T59890: regression of the precision when projecting the cursor.

Basically the framebuffer size was different from the glViewport size.
This made the depth read in glReadPixel not corresponding to the center of the pixel.

Another thing that reduced precision compared to blender 2.79 is the `GPU_matrix_unproject` that now computes using `float`s instead of `double`s.
But this may be for another commit.
source/blender/draw/intern/draw_manager.c