diff --git a/src/main/java/dev/silenium/compose/gl/util/Natives.kt b/src/main/java/dev/silenium/compose/gl/util/Natives.kt index 728a770..14060b2 100644 --- a/src/main/java/dev/silenium/compose/gl/util/Natives.kt +++ b/src/main/java/dev/silenium/compose/gl/util/Natives.kt @@ -22,7 +22,7 @@ object Natives { fun load(libFileName: String) { val libFile = libs.getOrPut(libFileName) { val outputFile = dir.resolve(libFileName) - Natives::class.java.getResourceAsStream("natives/$libFileName")!!.use { input -> + Natives::class.java.classLoader.getResourceAsStream("natives/$libFileName")!!.use { input -> outputFile.outputStream().use { output -> input.copyTo(output) }