fix(window): sometimes no GLFW_PLATFORM
Clang Lint CI / lint-no-video (push) Successful in 50s
Clang Build CI / run-no-video (push) Successful in 55s
Clang Build CI / run-video (push) Successful in 1m3s
Clang Build CI / build-release (push) Successful in 1m26s
Clang Lint CI / lint-video (push) Successful in 53s
Clang Lint CI / lint-no-video (push) Successful in 50s
Clang Build CI / run-no-video (push) Successful in 55s
Clang Build CI / run-video (push) Successful in 1m3s
Clang Build CI / build-release (push) Successful in 1m26s
Clang Lint CI / lint-video (push) Successful in 53s
This commit is contained in:
@@ -39,7 +39,6 @@ build-no-video:
|
||||
-lm -lGL -lglfw -lasound \
|
||||
-Wall -Wextra \
|
||||
-Wno-format-truncation \
|
||||
-Wno-unused-parameter \
|
||||
-DGLFW_INCLUDE_NONE \
|
||||
-DGLFW_NATIVE_INCLUDE_NONE \
|
||||
-DLOG_USE_COLOR \
|
||||
|
||||
@@ -18,6 +18,7 @@ static void init_glfw(void (*error_callback)(int, const char *),
|
||||
log_info("[GLFW] %s", glfwGetVersionString());
|
||||
|
||||
switch (backend) {
|
||||
#ifdef GLFW_PLATFORM
|
||||
case GLFW_BACKEND_X11:
|
||||
glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_X11);
|
||||
log_info("[GLFW] platform: X11");
|
||||
@@ -34,6 +35,7 @@ static void init_glfw(void (*error_callback)(int, const char *),
|
||||
glfwInitHint(GLFW_PLATFORM, GLFW_BACKEND_WIN32);
|
||||
log_info("[GLFW] platform: Win32");
|
||||
break;
|
||||
#endif /* GLFW_PLATFORM */
|
||||
default:
|
||||
log_info("[GLFW] platform: Any");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user