From ee7093689f65556588eb812631abb56d2b415263 Mon Sep 17 00:00:00 2001 From: mano-wii Date: Mon, 20 May 2019 15:41:39 -0300 Subject: GPU: Use uint in GPU_batch_uniform_1ui. --- source/blender/draw/intern/draw_manager.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/draw/intern/draw_manager.c') diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index c3818fa8837..d8afe4f248c 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -2684,7 +2684,7 @@ void DRW_draw_depth_object(ARegion *ar, GPUViewport *viewport, Object *object) DRW_opengl_context_disable(); } -static void draw_mesh_verts(GPUBatch *batch, int offset, const float world_clip_planes[6][4]) +static void draw_mesh_verts(GPUBatch *batch, uint offset, const float world_clip_planes[6][4]) { GPU_point_size(UI_GetThemeValuef(TH_VERTEX_SIZE)); @@ -2698,7 +2698,7 @@ static void draw_mesh_verts(GPUBatch *batch, int offset, const float world_clip_ GPU_batch_draw(batch); } -static void draw_mesh_edges(GPUBatch *batch, int offset, const float world_clip_planes[6][4]) +static void draw_mesh_edges(GPUBatch *batch, uint offset, const float world_clip_planes[6][4]) { GPU_line_width(1.0f); glProvokingVertex(GL_FIRST_VERTEX_CONVENTION); @@ -2717,7 +2717,7 @@ static void draw_mesh_edges(GPUBatch *batch, int offset, const float world_clip_ /* two options, facecolors or black */ static void draw_mesh_face(GPUBatch *batch, - int offset, + uint offset, const bool use_select, const float world_clip_planes[6][4]) { @@ -2743,7 +2743,7 @@ static void draw_mesh_face(GPUBatch *batch, } } -static void draw_mesh_face_dot(GPUBatch *batch, int offset, const float world_clip_planes[6][4]) +static void draw_mesh_face_dot(GPUBatch *batch, uint offset, const float world_clip_planes[6][4]) { const eGPUShaderConfig sh_cfg = world_clip_planes ? GPU_SHADER_CFG_CLIPPED : GPU_SHADER_CFG_DEFAULT; -- cgit v1.2.3