From 7da1948b2518f3dae774f04020f2b38fda3be408 Mon Sep 17 00:00:00 2001 From: mmikk Date: Fri, 21 Oct 2016 17:05:30 -0700 Subject: [PATCH] helps if the index actually IS impossible :) helps if the index actually IS impossible :) --- .../ScriptableRenderLoop/fptl/lightlistbuild-clustered.compute | 2 +- Assets/ScriptableRenderLoop/fptl/lightlistbuild.compute | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/ScriptableRenderLoop/fptl/lightlistbuild-clustered.compute b/Assets/ScriptableRenderLoop/fptl/lightlistbuild-clustered.compute index 4c8c33f8cda..5a4773bc49f 100644 --- a/Assets/ScriptableRenderLoop/fptl/lightlistbuild-clustered.compute +++ b/Assets/ScriptableRenderLoop/fptl/lightlistbuild-clustered.compute @@ -377,7 +377,7 @@ void sortLightList(int localThreadID, int length) const int N = (const int) LimitPow2AndClamp((unsigned int) length, MAX_NR_COARSE_ENTRIES); // N is 1 when length is zero but will still not enter first for-loop // bitonic sort can only handle arrays with a power of two length. Fill remaining entries with greater than possible index. - for(int t=length+localThreadID; t