Tweak Render2D Tint.

This commit is contained in:
Jean-Baptiste Perrier
2021-02-27 18:18:34 +01:00
parent ab77e5ef31
commit f939eec924

View File

@@ -636,8 +636,7 @@ void Render2D::Begin(GPUContext* context, GPUTextureView* output, GPUTextureView
ClipLayersStack.Add({ defaultMask, defaultBounds });
TintLayersStack.Clear();
Color defaultColor(1, 1, 1, 1);
TintLayersStack.Add(defaultColor);
TintLayersStack.Add({1,1,1,1});
// Scissors can be enabled only for 2D orthographic projections
IsScissorsRectEnabled = false;