Fix CUDA context leak causing encoder init failures using X11 capture with NVENC

This commit is contained in:
Cameron Gutman 2024-03-03 18:37:06 -06:00
commit 529f1b84f8
2 changed files with 3 additions and 2 deletions

View file

@ -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;