OpenNox libGL error

The OpenNox snap doesn’t work atleast since December possibly longer.

The dev doesn’t know how to resolve the issue. Maybe someone could help out.

This is from my own setup:

libGL error: MESA-LOADER: failed to open radeonsi (search paths /usr/lib/i386-linux- 
gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open radeonsi (search paths /usr/lib/i386-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/i386-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 152 (GLX)
  Request Minor code 6 ()
  Error Serial #111
  Current Serial #110

Info about the snap and snapd.

snap info opennox 
name:      opennox
summary:   Modern implementation of Nox game engine
publisher: Denys Smirnov (dennwc)
store-url: https://snapcraft.io/opennox
contact:   https://github.com/dennwc/
license:   unset
description: |
  **OpenNox** is a modern implementation of a **Nox** game engine.
  
  It **requires a copy** of Nox game installed. The best way to do so is to
  install GoG [1] version from Lutris [2].
  
  [1] https://www.gog.com/game/nox
  [2] https://lutris.net/games/nox/
commands:
  - opennox.hd
  - opennox
  - opennox.server
snap-id:      bBc7pmEvZ9SCTQIvJioj2y5ED6XOrwrE
tracking:     latest/candidate
refresh-date: today at 18:51 CET
channels:
  latest/stable:    v1.8.12-alpha3       2023-03-13 (211) 91MB -
  latest/candidate: ↑                                          
  latest/beta:      ↑                                          
  latest/edge:      v1.8.12-dev-a2c6aea6 2023-03-12 (210) 91MB -
installed:          v1.8.12-alpha3                  (211) 91MB -

snap version 
snap    2.58.3+git681.ga7984f0
snapd   2.58.3+git681.ga7984f0
series  16
ubuntu  22.04
kernel  6.2.5-x64v2-xanmod1

I resolved the issue on my own.

Turns out it only needed an environment variable to be added to make it work.

environment:
  LIBGL_DRIVERS_PATH: $SNAP/usr/lib/i386-linux-gnu/dri

The change is available in the edge channel and will land in stable when there will be a new version of OpenNox.

Actually the change was also released to stable channel, so both versions of OpenNox snap are working.