Skip to content

Commit 73fc3ba

Browse files
committed
cleanup: Switch away from deprecated OIIO function names (#1838)
Signed-off-by: Larry Gritz <[email protected]>
1 parent 07b81ef commit 73fc3ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/testshade/testshade.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,9 +1418,9 @@ batched_save_outputs(SimpleRenderer* rend, ShadingSystem* shadingsys,
14181418
int y = by[batchIndex];
14191419
int data = batchResults[batchIndex];
14201420
float pixel[1];
1421-
OIIO::convert_types(TypeDesc::BASETYPE(t.basetype), &data,
1422-
TypeDesc::FLOAT, &pixel[0],
1423-
1 /*nchans*/);
1421+
OIIO::convert_pixel_values(TypeDesc::BASETYPE(t.basetype),
1422+
&data, TypeDesc::FLOAT,
1423+
&pixel[0], 1 /*nchans*/);
14241424
outputimg->setpixel(x, y, &pixel[0]);
14251425
if (print_outputs) {
14261426
*oStreams[batchIndex]
@@ -1442,9 +1442,9 @@ batched_save_outputs(SimpleRenderer* rend, ShadingSystem* shadingsys,
14421442
intPixel[c] = batchResults[batchIndex][c];
14431443
}
14441444

1445-
OIIO::convert_types(TypeDesc::BASETYPE(t.basetype),
1446-
intPixel, TypeDesc::FLOAT, floatPixel,
1447-
3 /*nchans*/);
1445+
OIIO::convert_pixel_values(TypeDesc::BASETYPE(t.basetype),
1446+
intPixel, TypeDesc::FLOAT,
1447+
floatPixel, 3 /*nchans*/);
14481448
outputimg->setpixel(x, y, floatPixel);
14491449
if (print_outputs) {
14501450
(*oStreams[batchIndex])

0 commit comments

Comments
 (0)