Fix wrong cast from uint to int (2)

Error in rB3d877c8a0d06
This commit is contained in:
Germano Cavalcante 2022-04-29 10:22:49 -03:00
parent a323ada701
commit 1d9c050188
Notes: blender-bot 2023-02-14 06:00:44 +01:00
Referenced by issue #97702, Crash loading demo flat-archiviz with 3.2 Alpha
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ static void extract_edge_idx_loose_geom_subdiv(const DRWSubdivCache *subdiv_cach
GPUVertBuf *vbo = static_cast<GPUVertBuf *>(buffer);
int32_t *vert_idx_data = (int32_t *)GPU_vertbuf_get_data(vbo);
int offset = subdiv_cache->num_subdiv_loops;
uint offset = subdiv_cache->num_subdiv_loops;
blender::Span<DRWSubdivLooseEdge> loose_edges = draw_subdiv_cache_get_loose_edges(subdiv_cache);
for (const DRWSubdivLooseEdge &loose_edge : loose_edges) {