nvidia/cuda/obs: Release stream before context

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-06-17 12:15:38 +02:00
parent 0f56f822c3
commit 0f92a4b499

View file

@ -44,6 +44,7 @@ streamfx::nvidia::cuda::obs::~obs()
auto stack = _context->enter(); auto stack = _context->enter();
_stream->synchronize(); _stream->synchronize();
_context->synchronize(); _context->synchronize();
_stream.reset();
} }
_context.reset(); _context.reset();
_cuda.reset(); _cuda.reset();