OpenGL support is disabled when trying to run Morrowind through Wine

Questions about Wine on Linux
Locked
SlayerGG
Newbie
Newbie
Posts: 2
Joined: Mon Dec 04, 2023 12:35 am

OpenGL support is disabled when trying to run Morrowind through Wine

Post by SlayerGG »

Hello. I'm trying to run Morrowind through Wine on my old Samsung N145 Plus netbook.

When I launch the game, wine outputs this:

Code: Select all

0024:err:vulkan:wine_vk_init Failed to load libvulkan.so.1.
0024:err:wgl:init_opengl Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory
0024:err:wgl:init_opengl OpenGL support is disabled.
0024:err:d3d:wined3d_caps_gl_ctx_create Failed to find a suitable pixel format.
0024:err:d3d:wined3d_adapter_gl_init Failed to get a GL context for adapter 009FB1C0.
And the game window shows nothing.

Here is some info of my system:

Code: Select all

CPU: Intel Atom N455 / 1.66 GHz
GPU: Intel GMA 3150
RAM: 2GB
128GB SSD

---------------------------------------------------------------------------------
$ wine --version
wine-8.0 (Debian 8.0~repack-4)

$ uname -a
Linux mx 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux

$ glxinfo -B
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa Project (0x8086)
    Device: i915 (chipset: Pineview M) (0xa011)
    Version: 22.3.6
    Accelerated: yes
    Video memory: 384MB
    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: Mesa Project
OpenGL renderer string: i915 (chipset: Pineview M)
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

$ sudo lspci -v | grep 'VGA'
00:02.0 VGA compatible controller: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller (prog-if 00 [VGA controller])

$ glxinfo | egrep '^[[:alpha:]]'
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
GLX version: 1.4
GLX extensions:
Extended renderer info (GLX_MESA_query_renderer):
OpenGL vendor string: Mesa Project
OpenGL renderer string: i915 (chipset: Pineview M)
OpenGL version string: 2.1 Mesa 22.3.6
OpenGL shading language version string: 1.20
OpenGL extensions:
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
OpenGL ES profile extensions:

$ inxi -G
Graphics:
  Device-1: Intel Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics
    driver: i915 v: kernel
  Device-2: Silicon Motion WebCam SCB-0355N type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: intel dri: i915
    gpu: i915 resolution: 1024x600~60Hz
  API: OpenGL v: 2.1 Mesa 22.3.6 renderer: i915 (: Pineview M)
The result and output is the same when running with either 32 or 64 bit wineprefix.
SlayerGG
Newbie
Newbie
Posts: 2
Joined: Mon Dec 04, 2023 12:35 am

Re: OpenGL support is disabled when trying to run Morrowind through Wine

Post by SlayerGG »

After installing some missing 32 bit mesa driver packages, the output that I get is:

Code: Select all

free(): invalid pointer
0078:err:seh:NtRaiseException Exception frame is not in stack limits => unable to dispatch exception.
Now the game launches, the sound can be heard and there is no output from wine, but the screen is black.

I've turned on virtual desktop and now the game window is just black.

Installed d3dx9 d3dx9_28 d3dx9_36 d3dx9 43 d3dcompiler_43 d3dcompiler_47 dinput and manually added d3d8 with winetricks: no success.

I've also tried running DirectX test in dxdiag after installing it with winetricks, but it crashes immediately.
Last edited by SlayerGG on Mon Dec 04, 2023 6:55 am, edited 1 time in total.
SlayerGG
Newbie
Newbie
Posts: 2
Joined: Mon Dec 04, 2023 12:35 am

Re: OpenGL support is disabled when trying to run Morrowind through Wine

Post by SlayerGG »

I've tried compiling latest mesa drivers with Gallium Nine support. Using 32 bit version of drivers and after installing Gallium Nine through winetricks, wineninecfg loads dlls successfully, but says that it couldn't find a compatible GPU. Reading the github page for Gallium Nine Standalone, I found out that it supports Intel gen4-7 graphics, and Intel GMA 3150 is gen3.

As a side note, after installing 64 bit version of the compiled drivers, glxgears started working properly. Before that it just showed a black screen. Morrowind still doesn't work, though.
Last edited by SlayerGG on Tue Dec 05, 2023 4:19 am, edited 1 time in total.
Locked