Skip to content

Commit

Permalink
Use -lGLESv3 on Android only, and -lGLESv2 on other Linux based systems.
Browse files Browse the repository at this point in the history
  • Loading branch information
vanfanel committed Jan 29, 2024
1 parent 5ec8aa6 commit 6a2b8e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -473,12 +473,12 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
endif()

if (USE_OPENGLES)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
find_library(OPENGLES_LIBRARY GLESv2)
target_link_libraries(libultraship PRIVATE GLESv2)
else()
if (CMAKE_SYSTEM_NAME STREQUAL "Android")
find_library(OPENGLES_LIBRARY GLESv3)
target_link_libraries(libultraship PRIVATE GLESv3)
else()
find_library(OPENGLES_LIBRARY GLESv2)
target_link_libraries(libultraship PRIVATE GLESv2)
endif()
endif()

Expand Down

0 comments on commit 6a2b8e7

Please sign in to comment.