warzone2100 icon indicating copy to clipboard operation
warzone2100 copied to clipboard

gfx_api::context::get().initialize failed for backend: opengl

Open cStrDo293 opened this issue 1 year ago • 4 comments

Describe the bug I performed a software update on an old laptop with Arch Linux (OpenGL version: 2.1) (pacman -Syu), which resulted in display errors and Warzone 2100 could no longer be started with an error message, see below. I was able to fix the display errors by replacing the mesa driver with the "mesa-amber" driver recommended for old Intel graphics cards. Unfortunately, WZ still won't start.

Error message text: "[wzMainScreenSetup:3251] gfx_api::context::get().initialize failed for backend: opengl"

To Reproduce Steps to reproduce the behavior:

  1. open a Terminal
  2. command "warzone2100 "
  3. See error

Expected behavior The game usually starts on this "old" computer without any problems until this update on January 02, 2024.

Screenshots or Videos

Your System:

  • Hardware: Lenovo B560
  • RAM 3 GB
  • OpenGL Version: 2.1
  • OS: Arch Linux X86_64
  • Game version: 4.4.2-2

Additional context

glxinfo OUTPUT glxinfo | grep OpenGL OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) HD Graphics (ILK) OpenGL version string: 2.1 Mesa 21.3.9-arch.6 Amber OpenGL shading language version string: 1.20 OpenGL extensions: OpenGL ES profile version string: OpenGL ES 2.0 Mesa 21.3.9-arch.6 Amber OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16 OpenGL ES profile extensions:

WARZONE2100 LOGFILE

WZlog-0108_111904.txt

cStrDo293 avatar Jan 08 '24 12:01 cStrDo293

The game requires OpenGL 3.0+ Available to you OpenGL version string: 2.1

In addition to the video card built into the processor, the laptop can have a GeForce 310M installed. It should support OpenGL 3.3

vaut avatar Jan 08 '24 13:01 vaut

Is this minimum requirement new? So far Warzone2100 could be played on this computer without any problems (until the turn of the year). According to the website, "only" OpenGL 2.1 is required, right? https://wz2100.net/

Thank you for the information about adding the Geforce 310M graphics card. The card would be connected via the mini PCI-e interface?

cStrDo293 avatar Jan 08 '24 13:01 cStrDo293

I found in the Lenovo B560 specifications a discrete GeForce 310M video card already installed. Perhaps you have a different modification of the laptop. Check its presence with the lspci command and that it is not disabled in the BIOS.

vaut avatar Jan 08 '24 15:01 vaut

Nvidia GeForce 310M supports up to OpenGL 3.3.

Mesa DRI Intel(R) HD Graphics (ILK)

...and you seem to be using an integrated rather than this GPU.

Monsterovich avatar Feb 05 '24 20:02 Monsterovich