Skip to content

Commit

Permalink
fixed awt
Browse files Browse the repository at this point in the history
  • Loading branch information
elect86 committed May 25, 2023
1 parent 6296398 commit 1118baf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions awt/src/main/kotlin/uno/awt/LwjglCanvas.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ abstract class LwjglCanvas(val glDebug: Boolean = false) : Canvas() {

init()

glfwWindow.makeCurrent(false)
glWindow.makeCurrent(false)

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

glWindow.inContext {
glWindow.withinContext {

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

glWindow.inContext {
destroy()
debugProc?.free()
}
// glWindow.inContext {
// destroy()
// debugProc?.free()
// }

JAWTFunctions.JAWT_FreeDrawingSurface(surface, awt.FreeDrawingSurface())
awt.free()
Expand Down

0 comments on commit 1118baf

Please sign in to comment.