DRW: Fix corner indices order in clipping plane setup

Fix T60667: Eevee: reflection plane bug in rendered view.
This commit is contained in:
Clément Foucault 2019-01-21 15:21:17 +01:00
parent 9bc47ed0f6
commit 14b5668c60
Notes: blender-bot 2023-02-14 09:36:46 +01:00
Referenced by issue #60667, reflection plane bug in rendered view. EEVEE
1 changed files with 1 additions and 1 deletions

View File

@ -555,7 +555,7 @@ static void draw_clipping_setup_from_view(void)
default: q = 4; r = 7; s = 6; break; /* +X */
}
if (DST.frontface == GL_CW) {
SWAP(int, q, r);
SWAP(int, q, s);
}
normal_quad_v3(DST.clipping.frustum_planes[p], bbox.vec[p], bbox.vec[q], bbox.vec[r], bbox.vec[s]);