Skip to content

Commit e0d2d72

Browse files
committed
Fixed bug where constant lookup tables were not precomputed
1 parent bf2e880 commit e0d2d72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MiniEngine/Core/Shaders/BicubicFilterFunctions.hlsli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ float4 GetBicubicFilterWeights(float offset, float A)
3131
//return ComputeWeights(offset, A);
3232

3333
// Precompute weights for 16 discrete offsets
34-
static const float4 FilterWeights[16] =
34+
const float4 FilterWeights[16] =
3535
{
3636
ComputeWeights( 0.5 / 16.0, -0.5),
3737
ComputeWeights( 1.5 / 16.0, -0.5),

MiniEngine/Core/Shaders/LanczosFunctions.hlsli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ float4 GetUpscaleFilterWeights(float offset)
4141
//return ComputeWeights(offset);
4242

4343
// Precompute weights for 16 discrete offsets
44-
static const float4 FilterWeights[16] =
44+
const float4 FilterWeights[16] =
4545
{
4646
ComputeWeights( 0.5 / 16.0),
4747
ComputeWeights( 1.5 / 16.0),

0 commit comments

Comments
 (0)