Skip to content

Commit f19fc76

Browse files
committed
fix: Handle OIIO deprecations (1844)
Signed-off-by: Larry Gritz <[email protected]>
1 parent 67d820d commit f19fc76

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/osltoy/osltoyapp.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,8 @@ OSLToyMainWindow::OSLToyMainWindow(OSLToyRenderer* rend, int xr, int yr)
432432
QPixmap pixmap(xres, yres);
433433
OIIO::ImageBuf checks(
434434
OIIO::ImageSpec(xres, yres, 3, OIIO::TypeDesc::UINT8));
435-
const float white[] = { 1, 1, 1 };
436-
const float black[] = { 0, 0, 0 };
437-
OIIO::ImageBufAlgo::checker(checks, 16, 16, 1, white, black);
435+
OIIO::ImageBufAlgo::checker(checks, 16, 16, 1, 1.0f /* white */,
436+
0.0f /* black */);
438437
renderView->update(checks);
439438

440439
textTabs = new QTabWidget;

0 commit comments

Comments
 (0)