raw-gl-context icon indicating copy to clipboard operation
raw-gl-context copied to clipboard

context creation fails on X11 with Nvidia drivers if alpha_bits != 0

Open glowcoil opened this issue 4 years ago • 1 comments

If a context is requested with alpha_bits != on X11 with Nvidia drivers, the following error is generated:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  50
  Current serial number in output stream:  50

This can be worked around by requesting 0 alpha bits. Possible avenues for a long-term fix:

  • more elaborate/thorough pixel format selection logic
  • switching to EGL

This appears to be the same problem observed here: https://github.com/opentk/opentk/issues/108

glowcoil avatar Dec 24 '20 01:12 glowcoil

Related: https://github.com/rust-windowing/glutin/issues/834

glowcoil avatar Feb 02 '21 09:02 glowcoil