obs-ffmpeg: Initialize mapped_res field in nv_texture_init
Otherwise it might never be initialized and nv_texture_free might unmap a non-existant resource.master
parent
fe776a83eb
commit
5ac6c03a8a
|
@ -187,6 +187,7 @@ static bool nv_texture_init(struct nvenc_data *enc, struct nv_texture *nvtex)
|
|||
|
||||
nvtex->res = res.registeredResource;
|
||||
nvtex->tex = tex;
|
||||
nvtex->mapped_res = NULL;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue