Not clearing contexts causes actions to build up?
This commit is contained in:
parent
e410f14b5d
commit
314ae2acd5
1 changed files with 2 additions and 0 deletions
|
@ -735,6 +735,7 @@ end
|
|||
formCtx = gui.renderctx.new(500, 500)
|
||||
function displayForm()
|
||||
formCtx:set()
|
||||
formCtx:clear()
|
||||
gui.rectangle(0, 0, 500, 500, 1, 0x00ffffff, 0x00000000)
|
||||
gui.circle(game.screenX-84, game.screenY-84, 192 / 2, 1, 0x50000000)
|
||||
|
||||
|
@ -959,6 +960,7 @@ end
|
|||
genomeCtx = gui.renderctx.new(470, 200)
|
||||
function displayGenome(genome)
|
||||
genomeCtx:set()
|
||||
genomeCtx:clear()
|
||||
gui.solidrectangle(0, 0, 470, 200, 0x00606060)
|
||||
local network = genome.network
|
||||
local cells = {}
|
||||
|
|
Loading…
Add table
Reference in a new issue