Hide OpenGL3 behind SDL2 (it won’t build otherwise anyway)

This commit is contained in:
numzero 2023-07-02 21:35:11 +03:00 committed by sfan5
parent 0b9ee5884f
commit 6a5fceb8fd

View File

@ -148,7 +148,11 @@ endif()
# OpenGL
option(ENABLE_OPENGL3 "Enable OpenGL 3+" FALSE)
if(USE_SDL2)
option(ENABLE_OPENGL3 "Enable OpenGL 3+" FALSE)
else()
set(ENABLE_OPENGL3 FALSE)
endif()
if(ANDROID OR EMSCRIPTEN)
set(ENABLE_OPENGL FALSE)