Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / space_view3d / drawobject.c
index c9f697b1cc1354e09d2981263f394e12d7910efa..f4498b1592ef927808730a3c3d6f1bc9cf57f251 100644 (file)
@@ -1907,14 +1907,14 @@ static void drawcamera_volume(float near_plane[4][3], float far_plane[4][3], boo
                immVertex3fv(pos, near_plane[2]);
 
                immVertex3fv(pos, near_plane[2]);
-               immVertex3fv(pos, near_plane[1]);
-               immVertex3fv(pos, far_plane[1]);
                immVertex3fv(pos, far_plane[2]);
-
-               immVertex3fv(pos, far_plane[0]);
-               immVertex3fv(pos, near_plane[0]);
+               immVertex3fv(pos, far_plane[3]);
                immVertex3fv(pos, near_plane[3]);
+
                immVertex3fv(pos, far_plane[3]);
+               immVertex3fv(pos, near_plane[3]);
+               immVertex3fv(pos, near_plane[0]);
+               immVertex3fv(pos, far_plane[0]);
                immEnd();
 #endif
        }