make platformSupported actually callable before glfwInit

This commit is contained in:
FalsePattern 2025-01-19 13:46:09 +01:00
parent affdd6ae6f
commit 06e281f918
Signed by: falsepattern
GPG key ID: E930CDEC50C50E23

View file

@ -358,7 +358,6 @@ pub fn getPlatform() PlatformType {
/// ///
/// thread_safety: This function may be called from any thread. /// thread_safety: This function may be called from any thread.
pub fn platformSupported(platform: PlatformType) bool { pub fn platformSupported(platform: PlatformType) bool {
internal_debug.assertInitialized();
return c.glfwPlatformSupported(@intFromEnum(platform)) == c.GLFW_TRUE; return c.glfwPlatformSupported(@intFromEnum(platform)) == c.GLFW_TRUE;
} }