First I had to build my code using go build
. Only this was the program was able to recognize to recognize the mesa dll.
Second of all only the opengl32.dll
file was needed from the mesa download. I put this next to the exe build. But when I run like this I get the error above.
To fix this I created a run.bat
file and inserted the following code which worked.
@echo off
set MESA_LOADER_DRIVER_OVERRIDE=llvmpipe
set GALLIUM_DRIVER=llvmpipe
set MESA_GL_VERSION_OVERRIDE=4.5
set FYNE_RENDER=software
Main.exe
pause