Graphics: Fix EnableInstancing(bool) having no impact

This commit is contained in:
Lynix
2016-10-17 14:47:15 +02:00
parent 5a07bbd001
commit 7e594a861f
2 changed files with 3 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ namespace Nz
if (pipelineEntry.maxInstanceCount > 0)
{
bool instancing = (pipelineEntry.maxInstanceCount > NAZARA_GRAPHICS_INSTANCING_MIN_INSTANCES_COUNT);
bool instancing = instancingEnabled && (pipelineEntry.maxInstanceCount > NAZARA_GRAPHICS_INSTANCING_MIN_INSTANCES_COUNT);
UInt32 flags = ShaderFlags_Deferred;
if (instancing)