mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
Merge branch 'nvenc' of github.com:loki-47-6F-64/sunshine into nvenc
This commit is contained in:
Submodule pre-compiled updated: 51f776dbd4...8ec14fd4a4
@@ -1261,7 +1261,10 @@ util::Either<buffer_t, int> nv_d3d_make_hwdevice_ctx(platf::hwdevice_t *hwdevice
|
||||
auto ctx = (AVD3D11VADeviceContext*)((AVHWDeviceContext*)ctx_buf->data)->hwctx;
|
||||
|
||||
std::fill_n((std::uint8_t*)ctx, sizeof(AVD3D11VADeviceContext), 0);
|
||||
std::swap(ctx->device, *(ID3D11Device**)&hwdevice_ctx->data);
|
||||
|
||||
auto device = (ID3D11Device*)hwdevice_ctx->data;
|
||||
device->AddRef();
|
||||
ctx->device = device;
|
||||
|
||||
auto err = av_hwdevice_ctx_init(ctx_buf.get());
|
||||
if(err) {
|
||||
|
||||
Reference in New Issue
Block a user