Browse Source

Disable OpenGL backend in SDL on Windows ARM64

SDL 2.0.18 changed the variable name for this option.
Miku AuahDark 3 years ago
parent
commit
45465b5f44
1 changed files with 3 additions and 3 deletions
  1. 3 3
      CMakeLists.txt

+ 3 - 3
CMakeLists.txt

@@ -264,10 +264,10 @@ message(STATUS "-----------------------------------------------------")
 message(STATUS "Configuring: SDL2 ${MEGA_SDL2_VER}")
 message(STATUS "Configuring: SDL2 ${MEGA_SDL2_VER}")
 message(STATUS "-----------------------------------------------------")
 message(STATUS "-----------------------------------------------------")
 if(WIN32 AND MEGA_ARM64)
 if(WIN32 AND MEGA_ARM64)
-	# In Windows, SDL always tries to open OpenGL32.dll, which is not available in Windows 10
-	# ARM64. This will cause error later on which makes love.window.setMode unhappy even when
+	# In Windows, SDL always tries to open OpenGL32.dll, which is not available in Windows ARM64.
+	# This will cause error later on which makes love.window.setMode unhappy even when
 	# LOVE_GRAPHICS_USE_OPENGLES is set, so disable OpenGL backend.
 	# LOVE_GRAPHICS_USE_OPENGLES is set, so disable OpenGL backend.
-	set(VIDEO_OPENGL OFF CACHE BOOL "(SDL) Enable OpenGL Backend" FORCE)
+	set(SDL_OPENGL OFF CACHE BOOL "(SDL) Enable OpenGL Backend" FORCE)
 endif()
 endif()
 add_subdirectory("libs/SDL2" ${CMAKE_BINARY_DIR}/SDL2)
 add_subdirectory("libs/SDL2" ${CMAKE_BINARY_DIR}/SDL2)
 set(MEGA_SDL2 SDL2)
 set(MEGA_SDL2 SDL2)