diff --git a/source/blender/draw/engines/overlay/overlay_instance.cc b/source/blender/draw/engines/overlay/overlay_instance.cc index 8a2e8fa8160..8f79a139110 100644 --- a/source/blender/draw/engines/overlay/overlay_instance.cc +++ b/source/blender/draw/engines/overlay/overlay_instance.cc @@ -239,7 +239,7 @@ void Resources::update_theme_settings(const DRWContext *ctx, const State &state) using namespace math; UniformData &gb = theme; - auto rgba_uchar_to_float = [](uchar r, uchar b, uchar g, uchar a) { + auto rgba_uchar_to_float = [](uchar r, uchar g, uchar b, uchar a) { return float4(r, g, b, a) / 255.0f; };