obs-vkcapture icon indicating copy to clipboard operation
obs-vkcapture copied to clipboard

Unable to capture GL window with Nvidia prime offload

Open LiphiTC opened this issue 1 year ago • 7 comments

On Wayland:

glxgears crashes immediately after start:

$ obs-gamecapture prime-run glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
[obs-vkcapture] Init GLX 1.4.0
[obs-vkcapture] Texture GL_RGBA 951x1026
Xlib:  extension "NV-GLX" missing on display ":1".
X Error of failed request:  GLXBadPixmap
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  16 (X_GLXVendorPrivate)
  Serial number of failed request:  0
  Current serial number in output stream:  139

On Xorg:

glxgears able to run, but the result looks really messed up. It's trying to capture other windows which are running under iGPU. 2023-06-26-183646_1920x1080_scrot

I'm using hybrid configuration via optimus-manager

iGPU: Intel UHD Graphics 620 dGPU: Nvidia GeForce MX150

LiphiTC avatar Jun 26 '23 15:06 LiphiTC