Fix T104390: Regression: Object selection in viewport is not working

Caused by alignment difference between C and C++. Asan caught the issue
on startup.

Removing the unused view matrix storage copy avoids this problem.
This commit is contained in:
2023-02-07 10:34:45 +01:00
parent cb5318b651
commit 349350b304
2 changed files with 0 additions and 6 deletions

View File

@@ -637,9 +637,6 @@ typedef struct DRWManager {
DRWView *view_active;
DRWView *view_previous;
uint primary_view_num;
/** TODO(@fclem): Remove this. Only here to support
* shaders without common_view_lib.glsl */
ViewMatrices view_storage_cpy;
#ifdef USE_GPU_SELECT
uint select_id;

View File

@@ -1161,9 +1161,6 @@ static void drw_update_view(void)
GPU_uniformbuf_update(G_draw.view_ubo, &DST.view_active->storage);
GPU_uniformbuf_update(G_draw.clipping_ubo, &DST.view_active->clip_planes);
/* TODO: get rid of this. */
DST.view_storage_cpy = DST.view_active->storage;
draw_compute_culling(DST.view_active);
}