Commit a0a2349f authored by Nikolay Igotti's avatar Nikolay Igotti

Add init on additional paths.

parent 624ca789
...@@ -6,6 +6,12 @@ import javax.swing.SwingUtilities.convertPoint ...@@ -6,6 +6,12 @@ import javax.swing.SwingUtilities.convertPoint
import javax.swing.SwingUtilities.getRootPane import javax.swing.SwingUtilities.getRootPane
open class HardwareLayer : Canvas(), Drawable { open class HardwareLayer : Canvas(), Drawable {
companion object {
init {
Library.load()
}
}
override fun paint(g: Graphics) { override fun paint(g: Graphics) {
display() display()
} }
......
...@@ -22,6 +22,9 @@ class OpenGLApi private constructor() { ...@@ -22,6 +22,9 @@ class OpenGLApi private constructor() {
external fun glGetIntegerv(pname: Int): Int external fun glGetIntegerv(pname: Int): Int
companion object { companion object {
init {
Library.load()
}
val instance = OpenGLApi() val instance = OpenGLApi()
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment