Skip to content

Commit 1118baf

Browse files
committed
fixed awt
1 parent 6296398 commit 1118baf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

awt/src/main/kotlin/uno/awt/LwjglCanvas.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ abstract class LwjglCanvas(val glDebug: Boolean = false) : Canvas() {
6868

6969
init()
7070

71-
glfwWindow.makeCurrent(false)
71+
glWindow.makeCurrent(false)
7272

7373
// println("/LwjglCanvas.initInternal ${Date().toInstant()}")
7474
}
@@ -135,7 +135,7 @@ abstract class LwjglCanvas(val glDebug: Boolean = false) : Canvas() {
135135
if (!initialized)
136136
initInternal(hwnd)
137137

138-
glWindow.inContext {
138+
glWindow.withinContext {
139139

140140
if (resized) {
141141
// println("LwjglCanvas.reshape ${Date().toInstant()}")
@@ -282,10 +282,10 @@ abstract class LwjglCanvas(val glDebug: Boolean = false) : Canvas() {
282282
fun destroyInternal() {
283283
if (awtDebug) println("destroyInternal")
284284

285-
glWindow.inContext {
286-
destroy()
287-
debugProc?.free()
288-
}
285+
// glWindow.inContext {
286+
// destroy()
287+
// debugProc?.free()
288+
// }
289289

290290
JAWTFunctions.JAWT_FreeDrawingSurface(surface, awt.FreeDrawingSurface())
291291
awt.free()

0 commit comments

Comments
 (0)