diff options
Diffstat (limited to 'source/blender/gpu/opengl/gl_vertex_buffer.cc')
-rw-r--r-- | source/blender/gpu/opengl/gl_vertex_buffer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/opengl/gl_vertex_buffer.cc b/source/blender/gpu/opengl/gl_vertex_buffer.cc index 6942a220892..d186c2025b3 100644 --- a/source/blender/gpu/opengl/gl_vertex_buffer.cc +++ b/source/blender/gpu/opengl/gl_vertex_buffer.cc @@ -142,9 +142,9 @@ void *GLVertBuf::unmap(const void *mapped_data) const void GLVertBuf::wrap_handle(uint64_t handle) { BLI_assert(vbo_id_ == 0); - BLI_assert(glIsBuffer(static_cast<uint>(handle))); + BLI_assert(glIsBuffer(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; } |