Skip to content

Commit 529f1b8

Browse files
committed
Fix CUDA context leak causing encoder init failures using X11 capture with NVENC
1 parent 8d5a905 commit 529f1b8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
- (Capture/Linux) Fix missing mouse cursor when using KMS capture on a GPU with hardware cursor support
5151
- (Capture/Windows) Add workaround for Nvidia driver bug causing Sunshine to crash when RTX HDR is globally enabled
5252
- (Capture/Windows) Add workaround for AMD driver bug on pre-RDNA GPUs causing hardware encoding failure
53-
- (Capture/Windows) Reintroduce support for encoding on older Nvidia GPU drivers (v456.71-v522.25)
53+
- (Capture/Windows) Reintroduce support for NVENC on older Nvidia GPU drivers (v456.71-v522.25)
5454
- (Capture/Windows) Fix encoding on old Intel GPUs that don't support low-power H.264 encoding
5555
- (Capture/Linux) Fix GL errors or corrupt video output on GPUs that use aux planes such as Intel Arc
5656
- (Capture/Linux) Fix GL errors or corrupt video output on GPUs that use DRM modifiers on YUV buffers
@@ -68,6 +68,7 @@
6868
- (Capture/Windows) Fix delay displaying UAC dialogs when the mouse cursor is not moving
6969
- (Capture/Linux) Fix corrupt video output or stream disconnections if the display resolution changes while streaming
7070
- (Capture/Linux) Fix color of aspect ratio padding in the capture image with VAAPI
71+
- (Capture/Linux) Fix NVENC initialization error when using X11 capture with some GPUs
7172
- (Tray/Linux) Fix random crash when the tray icon is updating
7273
- (Network) Fix QoS tagging when running in IPv4+IPv6 mode
7374
- (Process) Fix termination of child processes upon app quit when the parent has already terminated

src/platform/linux/cuda.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ std::optional<tex_t> tex_t::make(int height, int pitch) {
222222
return tex;
223223
}
224224

225-
tex_t::tex_t() : array {}, texture { INVALID_TEXTURE } {}
225+
tex_t::tex_t() : array {}, texture { INVALID_TEXTURE, INVALID_TEXTURE } {}
226226
tex_t::tex_t(tex_t &&other) : array { other.array }, texture { other.texture } {
227227
other.array = 0;
228228
other.texture.point = INVALID_TEXTURE;

0 commit comments

Comments
 (0)