@echo off
REM Download Mesa3D For Windows by Federico Dossena:
REM here: https://fdossena.com/?p=mesa/index.frag
REM here: http://downloads.fdossena.com/Projects/Mesa3D/Builds/
REM set GALLIUM_DRIVER=softpipe
REM set GALLIUM_DRIVER=llvmpipe
REM set GALLIUM_DRIVER=swr
REM set LP_NUM_THREADS=4
REM set VAAPI_MPEG4_ENABLED=true
set GALLIUM_HUD=fps
set MESA_GL_VERSION_OVERRIDE=4.3COMPAT
set MESA_GLSL_VERSION_OVERRIDE=430
REM start "" epsxe.exe
start "" pcsxr-pgxp.exe
exit /B
REM set MESA_GLES_VERSION_OVERRIDE=3.1
REM set MESA_GL_VERSION_OVERRIDE=4.3
REM set MESA_GLSL_VERSION_OVERRIDE=430
REM set MESA_GL_VERSION_OVERRIDE=3.3
REM set MESA_GL_VERSION_OVERRIDE=3.2
REM set MESA_GLSL_VERSION_OVERRIDE=150
REM start GPU_Caps_Viewer.exe /start_demo_gl3_torus
REM pause
REM Environment Variables
REM see: https://www.mesa3d.org/envvars.html
REM Manual OpenGL context configuration
REM see: https://github.com/pal1000/mesa-dist-win
REM OpenGL Shading Language
REM see: https://en.wikipedia.org/wiki/OpenGL_Shading_Language#Versions
REM What does LIBGL_ALWAYS_INDIRECT=1 actually do?
REM see: https://unix.stackexchange.com/questions/1437/what-does-libgl-always-indirect-1-actually-do