diff --git a/prog/engine/drv/drv3d_DX12/pipeline.cpp b/prog/engine/drv/drv3d_DX12/pipeline.cpp index e101c3ce8..f633e20a5 100644 --- a/prog/engine/drv/drv3d_DX12/pipeline.cpp +++ b/prog/engine/drv/drv3d_DX12/pipeline.cpp @@ -178,6 +178,7 @@ bool PipelineVariant::generateRasterDescription(const RenderStateSystem::StaticS if (static_state.needsViewInstancing()) { + G_ASSERT(d3d::get_driver_desc().caps.hasBasicViewInstancing); target.append(static_state.getViewInstancingDesc()); } return true; diff --git a/prog/engine/drv/drv3d_DX12/render_state.h b/prog/engine/drv/drv3d_DX12/render_state.h index 097ad45b2..529f575ad 100644 --- a/prog/engine/drv/drv3d_DX12/render_state.h +++ b/prog/engine/drv/drv3d_DX12/render_state.h @@ -400,7 +400,6 @@ class RenderStateSystem } result.viewInstanceCount = def.viewInstanceCount; - G_ASSERT(result.viewInstanceCount == 0 || d3d::get_driver_desc().caps.hasBasicViewInstancing); result.enableConservativeRaster = def.conservativeRaster; result.enableAlphaToCoverage = def.alphaToCoverage;