From e45740d31ffd12916fd2b740333cae79e76e0944 Mon Sep 17 00:00:00 2001 From: mason Date: Tue, 25 Jul 2023 22:04:39 +0000 Subject: [PATCH] Build Flycast-SA w/ OpenGL where available. --- packages/emulators/standalone/flycast-sa/package.mk | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/packages/emulators/standalone/flycast-sa/package.mk b/packages/emulators/standalone/flycast-sa/package.mk index 91902463a..667633a96 100644 --- a/packages/emulators/standalone/flycast-sa/package.mk +++ b/packages/emulators/standalone/flycast-sa/package.mk @@ -13,18 +13,13 @@ PKG_LONGDESC="Flycast is a multiplatform Sega Dreamcast, Naomi and Atomiswave em PKG_TOOLCHAIN="cmake" PKG_PATCH_DIRS+="${DEVICE}" -if [ ! "${OPENGL}" = "no" ]; then +if [[ "${OPENGL_SUPPORT}" = "yes" ]] && [[ ! "${DEVICE}" = "S922X" ]]; then PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd" - PKG_CMAKE_OPTS_TARGET+=" USE_OPENGL=ON" -else - PKG_CMAKE_OPTS_TARGET+=" USE_OPENGL=OFF" -fi + PKG_CMAKE_OPTS_TARGET+=" -USE_OPENGL=ON -DUSE_GLES=OFF" -if [ "${OPENGLES_SUPPORT}" = yes ]; then +elif [ "${OPENGLES_SUPPORT}" = yes ]; then PKG_DEPENDS_TARGET+=" ${OPENGLES}" - PKG_CMAKE_OPTS_TARGET+=" -DUSE_GLES=ON" -else - PKG_CMAKE_OPTS_TARGET+=" -DUSE_GLES=OFF" + PKG_CMAKE_OPTS_TARGET+=" -DUSE_GLES=ON -DUSE_OPENGL=OFF" fi if [ "${VULKAN_SUPPORT}" = "yes" ]