Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-01-07 03:38:08 +0300
committerCampbell Barton <campbell@blender.org>2022-01-07 06:16:26 +0300
commit3d3bc748849834ef74563deb603ab43859cffeeb (patch)
treede74ce4722b2cb032c22dbc090a15dd2e172c29b /source/blender/gpu/GPU_buffers.h
parentbb69c19f08ac681d4386325e4318ebfbef2e9531 (diff)
Cleanup: remove redundant const qualifiers for POD types
MSVC used to warn about const mismatch for arguments passed by value. Remove these as newer versions of MSVC no longer show this warning.
Diffstat (limited to 'source/blender/gpu/GPU_buffers.h')
-rw-r--r--source/blender/gpu/GPU_buffers.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h
index 9ba283bf65f..598d4961e05 100644
--- a/source/blender/gpu/GPU_buffers.h
+++ b/source/blender/gpu/GPU_buffers.h
@@ -61,7 +61,7 @@ GPU_PBVH_Buffers *GPU_pbvh_mesh_buffers_build(const struct MPoly *mpoly,
const struct MVert *mvert,
const int *face_indices,
const int *sculpt_face_sets,
- const int face_indices_len,
+ int face_indices_len,
const struct Mesh *mesh);
/**
@@ -99,10 +99,10 @@ void GPU_pbvh_mesh_buffers_update(GPU_PBVH_Buffers *buffers,
const float *vmask,
const struct MLoopCol *vcol,
const int *sculpt_face_sets,
- const int face_sets_color_seed,
- const int face_sets_color_default,
+ int face_sets_color_seed,
+ int face_sets_color_default,
const struct MPropCol *vtcol,
- const int update_flags);
+ int update_flags);
/**
* Creates a vertex buffer (coordinate, normal, color) and,
@@ -114,7 +114,7 @@ void GPU_pbvh_bmesh_buffers_update(GPU_PBVH_Buffers *buffers,
struct GSet *bm_faces,
struct GSet *bm_unique_verts,
struct GSet *bm_other_verts,
- const int update_flags);
+ int update_flags);
/**
* Threaded: do not call any functions that use OpenGL calls!
@@ -126,10 +126,10 @@ void GPU_pbvh_grid_buffers_update(GPU_PBVH_Buffers *buffers,
int *grid_indices,
int totgrid,
const int *sculpt_face_sets,
- const int face_sets_color_seed,
- const int face_sets_color_default,
+ int face_sets_color_seed,
+ int face_sets_color_default,
const struct CCGKey *key,
- const int update_flags);
+ int update_flags);
/**
* Finish update. Not thread safe, must run in OpenGL main thread.