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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user