Merge remote-tracking branch 'origin/master' into 1.10
# Conflicts: # Source/Editor/Windows/Profiler/Memory.cs
This commit is contained in:
@@ -768,10 +768,7 @@ void Render2D::End()
|
||||
IsScissorsRectEmpty = false;
|
||||
for (int32 i = 0; i < DrawCalls.Count(); i++)
|
||||
{
|
||||
// Peek draw call
|
||||
const auto& drawCall = DrawCalls[i];
|
||||
|
||||
// Check if cannot add element to the batching
|
||||
if (batchSize != 0 && !CanBatchDrawCalls(DrawCalls[batchStart], drawCall))
|
||||
{
|
||||
// Flush batched elements
|
||||
@@ -999,6 +996,7 @@ void DrawBatch(int32 startIndex, int32 count)
|
||||
Render2D::CustomData customData;
|
||||
customData.ViewProjection = ViewProjection;
|
||||
customData.ViewSize = Float2::One;
|
||||
customData.UseDepthBuffer = DepthBuffer != nullptr;
|
||||
bindParams.CustomData = &customData;
|
||||
material->Bind(bindParams);
|
||||
|
||||
@@ -1035,6 +1033,7 @@ void DrawBatch(int32 startIndex, int32 count)
|
||||
Render2D::CustomData customData;
|
||||
customData.ViewProjection = ViewProjection;
|
||||
customData.ViewSize = Float2(d.AsMaterial.Width, d.AsMaterial.Height);
|
||||
customData.UseDepthBuffer = DepthBuffer != nullptr;
|
||||
bindParams.CustomData = &customData;
|
||||
material->Bind(bindParams);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user