Fix runtime error: shift of uint
The warning was: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' Patch by Clément Foucault.
This commit is contained in:
parent
7dc2a5a267
commit
1b1702abb0
|
@ -3600,7 +3600,7 @@ static GPUVertBuf *mesh_batch_cache_create_edges_overlay_texture_buf(MeshRenderD
|
|||
}
|
||||
/* Non-manifold edge */
|
||||
if (eav->vert_index[1] == -1) {
|
||||
value |= (1 << 31);
|
||||
value |= (1u << 31);
|
||||
}
|
||||
GPU_vertbuf_attr_set(vbo, index_id, vidx++, &value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue