mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
omg lol i forgot that
This commit is contained in:
@@ -67,7 +67,7 @@ open class GraphicsAdapter(val vm: VM, val config: AdapterConfig, val sgr: Super
|
||||
val channel = it % 4
|
||||
rgba.shr((3 - channel) * 8).and(255) / 255f
|
||||
}
|
||||
protected val chrrom0 = Texture(Pixmap(Gdx2DPixmap(Gdx.files.internal("./assets/"+config.chrRomPath).read(), Gdx2DPixmap.GDX2D_FORMAT_ALPHA)))
|
||||
protected var chrrom0 = Texture(Pixmap(Gdx2DPixmap(Gdx.files.internal("./assets/"+config.chrRomPath).read(), Gdx2DPixmap.GDX2D_FORMAT_ALPHA)))
|
||||
protected val faketex: Texture
|
||||
|
||||
internal val textArea = UnsafeHelper.allocate(7682)
|
||||
@@ -358,6 +358,9 @@ open class GraphicsAdapter(val vm: VM, val config: AdapterConfig, val sgr: Super
|
||||
}
|
||||
}
|
||||
|
||||
chrrom0.dispose()
|
||||
chrrom0 = Texture(pixmap)
|
||||
|
||||
pixmap.dispose()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user