Build with vendor-neutral OpenGL implementation by doing

./configure --disable-glx
This commit is contained in:
libretroadmin 2024-09-11 15:29:06 +02:00
parent 853c2cc14e
commit 8abe49abb4
3 changed files with 6 additions and 1 deletions

View File

@ -399,6 +399,10 @@ if [ "$HAVE_OPENGL" != 'no' ] && [ "$HAVE_OPENGLES" != 'yes' ]; then
elif [ "$OS" = 'Win32' ]; then
check_header '' OPENGL "GL/gl.h"
check_lib '' OPENGL -lopengl32
elif [ "$HAVE_GLX" = 'no' ]; then
# Use vendor-neutral OpenGL implementation instead of GLX
check_header '' OPENGL "GL/gl.h"
check_lib '' OPENGL -lOpenGL
else
check_header '' OPENGL "GL/gl.h"
check_lib '' OPENGL -lGL

View File

@ -183,6 +183,7 @@ HAVE_VIDEOCORE=auto # Broadcom Videocore 4 support
HAVE_DRMINGW=no # DrMingw exception handler
HAVE_CDROM=auto # CD-ROM support
HAVE_GLSL=yes # GLSL shaders support
HAVE_GLX=auto # GLX support (set this to 'off' for vendor-neutral OpenGL impl)
HAVE_SLANG=auto # slang support
C89_SLANG=no
HAVE_GLSLANG=auto # glslang support (requires C++11)

View File

@ -335,7 +335,7 @@ static char *copy_core_to_temp_file(
int64_t dll_file_size = 0;
const char *core_base_name = path_basename_nocompression(core_path);
if (strlen(core_base_name) == 0)
if (string_is_empty(core_base_name))
return NULL;
if (!(tmpdir = get_tmpdir_alloc(dir_libretro)))