diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-02-06 00:47:10 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-02-06 00:58:32 +0300 |
commit | 5c9ce9d066cbfa12e01e411fd5c46bd7043a74b2 (patch) | |
tree | db1875bd86f8f0205144fb0b9d59271b08e1a1f5 /source/blender/draw/intern/draw_manager_data.c | |
parent | 29824c6ed3bc8a874309ae76ce6552b45cdd13a0 (diff) |
DRW: Make use of shader shared header
Diffstat (limited to 'source/blender/draw/intern/draw_manager_data.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager_data.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/draw/intern/draw_manager_data.c b/source/blender/draw/intern/draw_manager_data.c index fd239499ca7..378e1dac149 100644 --- a/source/blender/draw/intern/draw_manager_data.c +++ b/source/blender/draw/intern/draw_manager_data.c @@ -1841,7 +1841,7 @@ static void draw_frustum_bound_sphere_calc(const BoundBox *bbox, } } -static void draw_view_matrix_state_update(DRWViewUboStorage *storage, +static void draw_view_matrix_state_update(ViewInfos *storage, const float viewmat[4][4], const float winmat[4][4]) { @@ -2061,7 +2061,7 @@ void DRW_view_clip_planes_set(DRWView *view, float (*planes)[4], int plane_len) BLI_assert(plane_len <= MAX_CLIP_PLANES); view->clip_planes_len = plane_len; if (plane_len > 0) { - memcpy(view->storage.clipplanes, planes, sizeof(float[4]) * plane_len); + memcpy(view->storage.clip_planes, planes, sizeof(float[4]) * plane_len); } } @@ -2124,21 +2124,21 @@ float DRW_view_far_distance_get(const DRWView *view) void DRW_view_viewmat_get(const DRWView *view, float mat[4][4], bool inverse) { view = (view) ? view : DST.view_default; - const DRWViewUboStorage *storage = &view->storage; + const ViewInfos *storage = &view->storage; copy_m4_m4(mat, (inverse) ? storage->viewinv : storage->viewmat); } void DRW_view_winmat_get(const DRWView *view, float mat[4][4], bool inverse) { view = (view) ? view : DST.view_default; - const DRWViewUboStorage *storage = &view->storage; + const ViewInfos *storage = &view->storage; copy_m4_m4(mat, (inverse) ? storage->wininv : storage->winmat); } void DRW_view_persmat_get(const DRWView *view, float mat[4][4], bool inverse) { view = (view) ? view : DST.view_default; - const DRWViewUboStorage *storage = &view->storage; + const ViewInfos *storage = &view->storage; copy_m4_m4(mat, (inverse) ? storage->persinv : storage->persmat); } |