Skip to content

Commit

Permalink
Fix OCIO failure with 1D LUTs with 2048 length
Browse files Browse the repository at this point in the history
Signed-off-by: Bernard Laberge <[email protected]>
  • Loading branch information
bernie-laberge committed Nov 14, 2024
1 parent 7e8407a commit ddf986a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/ip/IPCore/ShaderFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,7 @@ Function::hashAuxNames()
static regex funcDefRE(" ?\\w+ (\\w+) ?\\([^\\{]+\\{\\}$");
static regex varRE("const .*?(\\w+) ?=");
static regex varArrayRE("const .*?(\\w+)\\[\\w+] ?= ?\\w+\\[\\w+].*$");
static regex uniformSamplerRE("uniform sampler\\wD (\\w+).*$");

for (size_t i = 0; i < lines.size(); i++)
{
Expand All @@ -1354,7 +1355,8 @@ Function::hashAuxNames()

if (regex_search(line, sm, funcDefRE) ||
regex_search(line, sm, varRE) ||
regex_search(line, sm, varArrayRE))
regex_search(line, sm, varArrayRE) ||
regex_search(line, sm, uniformSamplerRE) )
{
if (sm[1] != m_name)
{
Expand Down

0 comments on commit ddf986a

Please sign in to comment.