mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
nvicia/cuda-context: Don't modify the primary context
Doing so could potentially cause other CUDA implementations to suddenly fail.
This commit is contained in:
parent
a40db1258a
commit
b91df3e11a
2 changed files with 2 additions and 4 deletions
|
@ -71,8 +71,6 @@ nvidia::cuda::context::context(std::shared_ptr<::nvidia::cuda::cuda> cuda, ID3D1
|
|||
throw std::runtime_error("Failed to acquire primary device context.");
|
||||
}
|
||||
|
||||
_cuda->cuDevicePrimaryCtxSetFlags(_device, cu_context_flags::SCHEDULER_YIELD);
|
||||
|
||||
_has_device = true;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -27,8 +27,8 @@ namespace nvidia::cuda {
|
|||
::nvidia::cuda::cu_context_t _ctx;
|
||||
|
||||
// Primary Device Context
|
||||
bool _has_device;
|
||||
std::int32_t _device;
|
||||
bool _has_device;
|
||||
::nvidia::cuda::cu_device_t _device;
|
||||
|
||||
private:
|
||||
context(std::shared_ptr<::nvidia::cuda::cuda> cuda);
|
||||
|
|
Loading…
Reference in a new issue