Eevee: Fix crash when Rendering (F12) using camera mapping.

This commit is contained in:
Clément Foucault 2018-01-30 23:23:02 +01:00
parent 4801e3fd92
commit 85d3de94c6
Notes: blender-bot 2023-02-14 08:42:53 +01:00
Referenced by commit 6a6f7547e3, DRW: Finish 85d3de94c6
1 changed files with 5 additions and 0 deletions

View File

@ -1685,6 +1685,11 @@ static void draw_geometry_prepare(
float mvp[4][4], mv[4][4], mi[4][4], mvi[4][4], pi[4][4], n[3][3], wn[3][3];
float orcofacs[2][3] = {{0.0f, 0.0f, 0.0f}, {1.0f, 1.0f, 1.0f}};
float eye[3] = { 0.0f, 0.0f, 1.0f }; /* looking into the screen */
float viewcamtexcofac[4] = { 1.0f, 1.0f, 0.0f, 0.0f };
if (rv3d != NULL) {
copy_v4_v4(viewcamtexcofac, rv3d->viewcamtexcofac);
}
bool do_pi = (interface->projectioninverse != -1);
bool do_mvp = (interface->modelviewprojection != -1);