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:
Diffstat (limited to 'source/blender/gpu/opengl')
-rw-r--r--source/blender/gpu/opengl/gl_shader.hh2
-rw-r--r--source/blender/gpu/opengl/gl_state.hh22
-rw-r--r--source/blender/gpu/opengl/gl_vertex_array.hh4
3 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/gpu/opengl/gl_shader.hh b/source/blender/gpu/opengl/gl_shader.hh
index 6a424e0c7ee..9ea1334b862 100644
--- a/source/blender/gpu/opengl/gl_shader.hh
+++ b/source/blender/gpu/opengl/gl_shader.hh
@@ -62,7 +62,7 @@ class GLShader : public Shader {
/** Should be called before linking. */
void transform_feedback_names_set(Span<const char *> name_list,
- const eGPUShaderTFBType geom_type) override;
+ eGPUShaderTFBType geom_type) override;
bool transform_feedback_enable(GPUVertBuf *buf) override;
void transform_feedback_disable() override;
diff --git a/source/blender/gpu/opengl/gl_state.hh b/source/blender/gpu/opengl/gl_state.hh
index e0c0dab76e1..83ff3ffc9e9 100644
--- a/source/blender/gpu/opengl/gl_state.hh
+++ b/source/blender/gpu/opengl/gl_state.hh
@@ -97,17 +97,17 @@ class GLStateManager : public StateManager {
uint8_t bound_image_slots();
private:
- static void set_write_mask(const eGPUWriteMask value);
- static void set_depth_test(const eGPUDepthTest value);
- static void set_stencil_test(const eGPUStencilTest test, const eGPUStencilOp operation);
- static void set_stencil_mask(const eGPUStencilTest test, const GPUStateMutable state);
- static void set_clip_distances(const int new_dist_len, const int old_dist_len);
- static void set_logic_op(const bool enable);
- static void set_facing(const bool invert);
- static void set_backface_culling(const eGPUFaceCullTest test);
- static void set_provoking_vert(const eGPUProvokingVertex vert);
- static void set_shadow_bias(const bool enable);
- static void set_blend(const eGPUBlend value);
+ static void set_write_mask(eGPUWriteMask value);
+ static void set_depth_test(eGPUDepthTest value);
+ static void set_stencil_test(eGPUStencilTest test, eGPUStencilOp operation);
+ static void set_stencil_mask(eGPUStencilTest test, const GPUStateMutable state);
+ static void set_clip_distances(int new_dist_len, int old_dist_len);
+ static void set_logic_op(bool enable);
+ static void set_facing(bool invert);
+ static void set_backface_culling(eGPUFaceCullTest test);
+ static void set_provoking_vert(eGPUProvokingVertex vert);
+ static void set_shadow_bias(bool enable);
+ static void set_blend(eGPUBlend value);
void set_state(const GPUState &state);
void set_mutable_state(const GPUStateMutable &state);
diff --git a/source/blender/gpu/opengl/gl_vertex_array.hh b/source/blender/gpu/opengl/gl_vertex_array.hh
index 0f9b61f9648..b8edbf3a691 100644
--- a/source/blender/gpu/opengl/gl_vertex_array.hh
+++ b/source/blender/gpu/opengl/gl_vertex_array.hh
@@ -39,13 +39,13 @@ namespace GLVertArray {
void update_bindings(const GLuint vao,
const GPUBatch *batch,
const ShaderInterface *interface,
- const int base_instance);
+ int base_instance);
/**
* Another version of update_bindings for Immediate mode.
*/
void update_bindings(const GLuint vao,
- const uint v_first,
+ uint v_first,
const GPUVertFormat *format,
const ShaderInterface *interface);