diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-25 11:30:50 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-25 11:31:10 +0300 |
commit | c7b247a118e302a3afc6473797e53b6af28b69e2 (patch) | |
tree | d11149a165bfd8f3b3b791f24547499f041b133b /source/blender/gpu | |
parent | 891949cbb47143420f4324cb60efc05ef5d70b39 (diff) |
Cleanup: replace static_casts with functional casts for numeric types
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/opengl/gl_vertex_buffer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/opengl/gl_vertex_buffer.cc b/source/blender/gpu/opengl/gl_vertex_buffer.cc index 6942a220892..2515b7e8f19 100644 --- a/source/blender/gpu/opengl/gl_vertex_buffer.cc +++ b/source/blender/gpu/opengl/gl_vertex_buffer.cc @@ -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; } |