Skip to content

Commit b998e1f

Browse files
committed
fix: compile warnings
1 parent a0cfb63 commit b998e1f

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/main/java/dev/silenium/compose/gl/CompositionLocals.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ val LocalWindow: CompositionLocal<Window?> by lazy {
1515
method.invoke(null) as CompositionLocal<Window?>
1616
}
1717

18+
@Suppress("UNCHECKED_CAST")
1819
internal fun Window.directContext(): DirectContext? {
1920
val composePanelProp = this::class.memberProperties.first { it.name == "composePanel" } as KProperty1<Any, Any>
2021
composePanelProp.isAccessible = true

src/main/java/dev/silenium/compose/gl/context/EGLContext.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ data class EGLContext(
4545
}
4646

4747
override fun destroy() {
48-
contextCapabilities.compute(this) { key, value ->
48+
contextCapabilities.compute(this) { _, value ->
4949
if (value == null) {
5050
eglMakeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)
5151
eglDestroyContext(display, context)

src/test/kotlin/Main.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ fun ApplicationScope.Content() {
101101
glVertex2f(0f, 1f)
102102
glEnd()
103103

104-
val wait = (1000.0 / 60).milliseconds
105104
redrawAfter(null)
106105
}
107106
val modifier = Modifier

0 commit comments

Comments
 (0)