Some applications refuse to open if WINE's "emulate virtual desktop" option is used with "PRIME render offload"

nvidia-bug-report.log.gz (1.8 MB)

I also filled a bug report at winehq: id=54915 (new users can only post 1 link, so be with the id of the bug report there).

Basically some application when running through wine will simply refuse to open if the emulate virtual desktop is used with prime render offload, but works normally when disabling it.

A small log from wine (without any debug option enabled):

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (NV-GLX)
  Minor opcode of failed request:  6 ()
  Value in failed request:  0x0
  Serial number of failed request:  448