nillerusr / source-engine

Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
Other
1.41k stars 227 forks source link

Compiling for RPi 2 [armv7l] Error: Could not find required OpenGL entry point 'glColorMaskIndexedEXT'! #392

Open Architector120 opened 3 weeks ago

Architector120 commented 3 weeks ago

Hi, I successfully built the project on "Raspberry Pi 2 Model B" but when i run the executable i get an error:

user@raspberrypi:~/build/hl2 $ ./hl2_launcher 
WARNING: setlocale('en_US.UTF-8') failed, using locale:'C'. International characters may not work.
SDL version: 2.0.14 rev: hg-14525:e52d96ea04fc
LoadLibrary: path: /home/user/build/hl2/bin/libfilesystem_stdio.so
SDL video target is 'x11'
SDL video target is 'x11'
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system DOES NOT support the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system DOES NOT support the OpenGL extension GL_EXT_draw_buffers2.
Could not find required OpenGL entry point 'glColorMaskIndexedEXT'! Either your video card is unsupported, or your OpenGL driver needs to be updated.

it seems to be a common issue with an older GPUs... and people somehow get around it using this trick: https://github.com/ValveSoftware/Source-1-Games/issues/32#issuecomment-14117516 but its not applicable for ARM platform... is there is a way around?

mittorn commented 3 weeks ago

What opengl versions your gpu supports? What driver do you use? Maybe try build gles3 engine? Anyway it should launch with gl4es, but performance will be awful..

Architector120 commented 3 weeks ago

What opengl versions your gpu supports? What driver do you use? Maybe try build gles3 engine? Anyway it should launch with gl4es, but performance will be awful..

pi@raspberrypi:~ $ glxinfo | grep "OpenGL"
OpenGL vendor string: Broadcom
OpenGL renderer string: VC4 V3D 2.1
OpenGL version string: 2.1 Mesa 20.3.5
OpenGL shading language version string: 1.20
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 20.3.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16

It looks like rpi2 is using OpenGL v2.1, is this a problem?