Skip to content

Commit 657dab9

Browse files
committed
fix: Avoid deprecated OSLQuery ctr in test example (#1699)
Signed-off-by: Larry Gritz <[email protected]>
1 parent 26ad186 commit 657dab9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testsuite/example-deformer/osldeformer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ main(int argc, char* argv[])
195195
int numlayers = 1;
196196
shadsys->getattribute(mygroup.get(), "num_layers", numlayers);
197197
std::vector<OSL::ustring> output_names;
198-
OSL::OSLQuery oslquery(mygroup.get(), numlayers - 1);
198+
OSL::OSLQuery oslquery = shadsys->oslquery(*mygroup.get(),
199+
numlayers - 1);
199200
for (size_t i = 0; i < oslquery.nparams(); ++i) {
200201
auto p = oslquery.getparam(i);
201202
if (p && p->isoutput)

0 commit comments

Comments
 (0)