Cleanup: replace static_casts with functional casts for numeric types

This commit is contained in:
2022-09-25 18:30:50 +10:00
parent 891949cbb4
commit c7b247a118
62 changed files with 148 additions and 167 deletions

View File

@@ -144,7 +144,7 @@ void GLVertBuf::wrap_handle(uint64_t handle)
BLI_assert(vbo_id_ == 0);
BLI_assert(glIsBuffer(static_cast<uint>(handle)));
is_wrapper_ = true;
vbo_id_ = static_cast<uint>(handle);
vbo_id_ = uint(handle);
/* We assume the data is already on the device, so no need to allocate or send it. */
flag = GPU_VERTBUF_DATA_UPLOADED;
}