mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
nvidia/cv: NvCVImage_Dealloc returns void
This commit is contained in:
parent
3dd65e8815
commit
faf85138fe
2 changed files with 2 additions and 6 deletions
|
@ -119,9 +119,5 @@ void streamfx::nvidia::cv::texture::free()
|
||||||
_cv->NvCV_GetErrorStringFromCode(res));
|
_cv->NvCV_GetErrorStringFromCode(res));
|
||||||
throw std::runtime_error("NvCVImage_UnmapResource");
|
throw std::runtime_error("NvCVImage_UnmapResource");
|
||||||
}
|
}
|
||||||
if (auto res = _cv->NvCVImage_Dealloc(&_image); res != result::SUCCESS) {
|
_cv->NvCVImage_Dealloc(&_image);
|
||||||
D_LOG_ERROR("Object 0x%" PRIxPTR " failed NvCVImage_Dealloc call with error: %s", this,
|
|
||||||
_cv->NvCV_GetErrorStringFromCode(res));
|
|
||||||
throw std::runtime_error("NvCVImage_Dealloc");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -226,7 +226,7 @@ namespace streamfx::nvidia::cv {
|
||||||
NVCVI_DEFINE_FUNCTION(NvCVImage_Realloc, image_t* image, uint32_t width, uint32_t height, pixel_format format,
|
NVCVI_DEFINE_FUNCTION(NvCVImage_Realloc, image_t* image, uint32_t width, uint32_t height, pixel_format format,
|
||||||
component_type comp_type, uint32_t comp_layout, uint32_t mem_location,
|
component_type comp_type, uint32_t comp_layout, uint32_t mem_location,
|
||||||
uint32_t alignment);
|
uint32_t alignment);
|
||||||
NVCVI_DEFINE_FUNCTION(NvCVImage_Dealloc, image_t* image);
|
NVCVI_DEFINE_FUNCTION_EX(void, NvCVImage_Dealloc, image_t* image);
|
||||||
NVCVI_DEFINE_FUNCTION(NvCVImage_Create, uint32_t width, uint32_t height, pixel_format format,
|
NVCVI_DEFINE_FUNCTION(NvCVImage_Create, uint32_t width, uint32_t height, pixel_format format,
|
||||||
component_type comp_type, component_layout comp_layout, memory_location mem_location,
|
component_type comp_type, component_layout comp_layout, memory_location mem_location,
|
||||||
uint32_t alignment, image_t** image);
|
uint32_t alignment, image_t** image);
|
||||||
|
|
Loading…
Reference in a new issue