mirror of
https://github.com/lubosz/overte.git
synced 2025-04-12 17:32:30 +02:00
BlurTask: Remove totalWeight that is never read.
This commit is contained in:
parent
a6b3797982
commit
c09ae79b70
1 changed files with 0 additions and 2 deletions
|
@ -77,7 +77,6 @@ void BlurParams::setFilterGaussianTaps(int numHalfTaps, float sigma) {
|
|||
assert(numTaps <= BLUR_MAX_NUM_TAPS);
|
||||
assert(sigma > 0.0f);
|
||||
const float inverseTwoSigmaSquared = float(0.5 / double(sigma*sigma));
|
||||
float totalWeight = 1.0f;
|
||||
float weight;
|
||||
float offset;
|
||||
int i;
|
||||
|
@ -93,7 +92,6 @@ void BlurParams::setFilterGaussianTaps(int numHalfTaps, float sigma) {
|
|||
params.filterTaps[i + 1].y = weight;
|
||||
params.filterTaps[i + 1 + numHalfTaps].x = -offset;
|
||||
params.filterTaps[i + 1 + numHalfTaps].y = weight;
|
||||
totalWeight += 2 * weight;
|
||||
}
|
||||
|
||||
// Tap weights will be normalized in shader because side cases on edges of screen
|
||||
|
|
Loading…
Reference in a new issue