Forgot to save files..

This commit is contained in:
Lynix 2017-04-22 17:14:56 +02:00
parent b5191d142a
commit 3e9ae9856a
2 changed files with 4 additions and 4 deletions

View File

@ -95,7 +95,7 @@ namespace Nz
if (!layer.opaqueModels.empty()) if (!layer.opaqueModels.empty())
DrawOpaqueModels(sceneData, layer); DrawOpaqueModels(sceneData, layer);
if (!layer.basicSprites.empty()) if (!layer.opaqueSprites.empty())
DrawBasicSprites(sceneData, layer); DrawBasicSprites(sceneData, layer);
if (!layer.billboards.empty()) if (!layer.billboards.empty())
@ -219,7 +219,7 @@ namespace Nz
Renderer::SetMatrix(MatrixType_World, Matrix4f::Identity()); Renderer::SetMatrix(MatrixType_World, Matrix4f::Identity());
Renderer::SetVertexBuffer(&m_spriteBuffer); Renderer::SetVertexBuffer(&m_spriteBuffer);
for (auto& pipelinePair : layer.basicSprites) for (auto& pipelinePair : layer.opaqueSprites)
{ {
const MaterialPipeline* pipeline = pipelinePair.first; const MaterialPipeline* pipeline = pipelinePair.first;
auto& pipelineEntry = pipelinePair.second; auto& pipelineEntry = pipelinePair.second;

View File

@ -104,7 +104,7 @@ namespace Nz
if (!layer.depthSortedMeshes.empty()) if (!layer.depthSortedMeshes.empty())
DrawTransparentModels(sceneData, layer); DrawTransparentModels(sceneData, layer);
if (!layer.basicSprites.empty()) if (!layer.opaqueSprites.empty())
DrawBasicSprites(sceneData, layer); DrawBasicSprites(sceneData, layer);
if (!layer.billboards.empty()) if (!layer.billboards.empty())
@ -301,7 +301,7 @@ namespace Nz
Renderer::SetMatrix(MatrixType_World, Matrix4f::Identity()); Renderer::SetMatrix(MatrixType_World, Matrix4f::Identity());
Renderer::SetVertexBuffer(&m_spriteBuffer); Renderer::SetVertexBuffer(&m_spriteBuffer);
for (auto& pipelinePair : layer.basicSprites) for (auto& pipelinePair : layer.opaqueSprites)
{ {
const MaterialPipeline* pipeline = pipelinePair.first; const MaterialPipeline* pipeline = pipelinePair.first;
auto& pipelineEntry = pipelinePair.second; auto& pipelineEntry = pipelinePair.second;