Fix CUDA context leak causing encoder init failures using X11 capture with NVENC
This commit is contained in:
parent
8d5a9054ec
commit
529f1b84f8
2 changed files with 3 additions and 2 deletions
|
|
@ -222,7 +222,7 @@ std::optional<tex_t> tex_t::make(int height, int pitch) {
|
|||
return tex;
|
||||
}
|
||||
|
||||
tex_t::tex_t() : array {}, texture { INVALID_TEXTURE } {}
|
||||
tex_t::tex_t() : array {}, texture { INVALID_TEXTURE, INVALID_TEXTURE } {}
|
||||
tex_t::tex_t(tex_t &&other) : array { other.array }, texture { other.texture } {
|
||||
other.array = 0;
|
||||
other.texture.point = INVALID_TEXTURE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue