Skip to content

Commit

Permalink
fix: Avoid deprecated OSLQuery ctr in test example (#1699)
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <[email protected]>
  • Loading branch information
lgritz committed Jun 16, 2023
1 parent 26ad186 commit 657dab9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testsuite/example-deformer/osldeformer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ main(int argc, char* argv[])
int numlayers = 1;
shadsys->getattribute(mygroup.get(), "num_layers", numlayers);
std::vector<OSL::ustring> output_names;
OSL::OSLQuery oslquery(mygroup.get(), numlayers - 1);
OSL::OSLQuery oslquery = shadsys->oslquery(*mygroup.get(),
numlayers - 1);
for (size_t i = 0; i < oslquery.nparams(); ++i) {
auto p = oslquery.getparam(i);
if (p && p->isoutput)
Expand Down

0 comments on commit 657dab9

Please sign in to comment.