Commit: d7c8efa921619c8a55fef2fe424ee715a682976d
Parent: 9d2bb8566b251d4d632e97a26bd023923dcf0627
Author: Randy Palamar
Date: Wed, 7 Aug 2024 22:48:39 -0600
don't send an extra (oob) colour to shader
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/colourpicker.c b/colourpicker.c
@@ -746,7 +746,7 @@ do_slider_shader(ColourPickerCtx *ctx, Rect r, i32 colour_mode, f32 *regions, f3
rlSetUniform(ctx->border_thick_id, &border_thick, RL_SHADER_UNIFORM_FLOAT, 1);
rlSetUniform(ctx->colour_mode_id, &colour_mode, RL_SHADER_UNIFORM_INT, 1);
rlSetUniform(ctx->size_id, r.size.E, RL_SHADER_UNIFORM_VEC2, 1);
- rlSetUniform(ctx->colours_id, colours, RL_SHADER_UNIFORM_VEC4, 4);
+ rlSetUniform(ctx->colours_id, colours, RL_SHADER_UNIFORM_VEC4, 3);
rlSetUniform(ctx->regions_id, regions, RL_SHADER_UNIFORM_VEC4, 4);
DrawRectangleRec(r.rr, BLACK);
EndShaderMode();