Skip to content

Commit

Permalink
Fix loadOpenGLLibrary for web targets (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
eymar authored Feb 22, 2024
1 parent a82cbd7 commit 78f227f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions skiko/src/commonMain/kotlin/org/jetbrains/skiko/OsArch.kt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ enum class KotlinBackend(val id: String) {
fun isNotJs() = this != JS
}

// Note: it returns the host OS for web apps too
expect val hostOs: OS

expect val hostArch: Arch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ internal actual fun getCursorById(id: PredefinedCursorsId): Cursor =
PredefinedCursorsId.CROSSHAIR -> "crosshair"
PredefinedCursorsId.HAND -> "pointer"
PredefinedCursorsId.TEXT -> "text"
}
}

internal actual fun loadOpenGLLibrary() {
// Nothing to do here
}

0 comments on commit 78f227f

Please sign in to comment.