Skip to content

Commit

Permalink
fixed GpuShader_tests.cpp
Browse files Browse the repository at this point in the history
(131071U / 4096U) + 1 = 32

Signed-off-by: Hannes Vernooij <[email protected]>
  • Loading branch information
hannes-vernooij committed Dec 5, 2023
1 parent 3e89f13 commit 0b2fee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cpu/GpuShader_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ float2 ocio_lut1d_0_computePos(float f)
retVal.y = floor(dep / 4095.);
retVal.x = dep - retVal.y * 4095.;
retVal.x = (retVal.x + 0.5) / 4096.;
retVal.y = (retVal.y + 0.5) / 33.;
retVal.y = (retVal.y + 0.5) / 32.;
return retVal;
}
Expand Down Expand Up @@ -798,7 +798,7 @@ float2 ocio_lut1d_2_computePos(float f)
retVal.y = floor(dep / 4095.);
retVal.x = dep - retVal.y * 4095.;
retVal.x = (retVal.x + 0.5) / 4096.;
retVal.y = (retVal.y + 0.5) / 33.;
retVal.y = (retVal.y + 0.5) / 32.;
return retVal;
}
Expand Down

0 comments on commit 0b2fee9

Please sign in to comment.