File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
awt/src/main/kotlin/uno/awt Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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()
You can’t perform that action at this time.
0 commit comments