noxworld-dev / opennox

OpenNox main repository.
GNU General Public License v3.0
458 stars 25 forks source link

error opengl i915 linux #692

Open ghost opened 4 months ago

ghost commented 4 months ago

Linux elemental 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux

./opennox 2024/05/15 13:37:21 [version]: version: v1.9.0-alpha13 () 2024/05/15 13:37:21 starting pprof server on "127.0.0.1:6060" 2024/05/15 13:37:21 [version]: GET https://ghcr.io/token?scope=repository%3Anoxworld-dev%2Fopennox%3Apull 2024/05/15 13:37:21 [path]: setting data dir to: "/home/eduardo/disco/Documents/juegos/Nox" 2024/05/15 13:37:21 [config]: using file: "/home/eduardo/disco/Documents/juegos/Nox/opennox.yml" 2024/05/15 13:37:21 [path]: setting data dir to: "/home/eduardo/disco/Documents/juegos/Nox" 2024/05/15 13:37:21 [sdl]: window size: 640x480 OpenGL creation failed: Could not create GL context: GLXBadFBConfig

Graphics: Device-1: Intel Core Processor Integrated Graphics driver: i915 v: kernel Device-2: KYE Systems (Mouse Systems) FaceCam 1000 type: USB driver: uvcvideo Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: intel dri: crocus gpu: i915 resolution: 1600x900~60Hz API: OpenGL v: 2.1 Mesa 22.3.6 renderer: Mesa Intel HD Graphics (ILK)

ghost commented 4 months ago

is ok export LIBGL_ALWAYS_SOFTWARE=1

angrykirc commented 4 months ago

So the error is fixed on your side with export LIBGL_ALWAYS_SOFTWARE=1 ? Seems to me that the source of the problem is your OpenGL API version: API: OpenGL v: 2.1 Mesa 22.3.6 Which in turn is probably because of the older i915 driver or your Intel iGPU does not support OpenGL 3.x at all. OpenNox currently requires OpenGL 3.3, that you should get by forcing software rendering in Mesa. Can you also send the output of glxinfo -B here?

ghost commented 4 months ago

So the error is fixed on your side with export LIBGL_ALWAYS_SOFTWARE=1

if it runs perfect

? Seems to me that the source of the problem is your OpenGL API version: API: OpenGL v: 2.1 Mesa 22.3.6 Which in turn is probably because of the older i915 driver or your Intel iGPU does not support OpenGL 3.x at all.

yes apparently it is an old intel

OpenNox currently requires OpenGL 3.3, that you should get by forcing software rendering in Mesa. Can you also send the output of glxinfo -B here?

glxinfo -B
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) HD Graphics (ILK) (0x42)
    Version: 22.3.6
    Accelerated: yes
    Video memory: 1536MB
    Unified memory: yes
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 2.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 2.0
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics (ILK)
OpenGL version string: 2.1 Mesa 22.3.6
OpenGL shading language version string: 1.20

OpenGL ES profile version string: OpenGL ES 2.0 Mesa 22.3.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16