diff --git a/src/libOpenImageIO/imagebuf.cpp b/src/libOpenImageIO/imagebuf.cpp index 72b8a35ec0..a948833b8f 100644 --- a/src/libOpenImageIO/imagebuf.cpp +++ b/src/libOpenImageIO/imagebuf.cpp @@ -967,7 +967,7 @@ ImageBuf::get_pixel_channels (int xbegin, int xend, int ybegin, int yend, xbegin, xend, ybegin, yend, zbegin, zend, \ chbegin, chend, (CType::type *)result); - switch (spec().format.basetype) { + switch (format.basetype) { TYPECASE (TypeDesc::UINT8); TYPECASE (TypeDesc::INT8); TYPECASE (TypeDesc::UINT16);