Skip to content

Commit c610d28

Browse files
committed
fix: use classloader for Natives
1 parent 2af3af8 commit c610d28

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/dev/silenium/compose/gl/util

1 file changed

+1
-1
lines changed

src/main/java/dev/silenium/compose/gl/util/Natives.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ object Natives {
2222
fun load(libFileName: String) {
2323
val libFile = libs.getOrPut(libFileName) {
2424
val outputFile = dir.resolve(libFileName)
25-
Natives::class.java.getResourceAsStream("natives/$libFileName")!!.use { input ->
25+
Natives::class.java.classLoader.getResourceAsStream("natives/$libFileName")!!.use { input ->
2626
outputFile.outputStream().use { output ->
2727
input.copyTo(output)
2828
}

0 commit comments

Comments
 (0)