examples: fix compilation

pull/5965/head
Delyan Angelov 2020-07-24 12:34:19 +03:00
parent 2cf8a53eac
commit 5acc437367
2 changed files with 7 additions and 5 deletions

View File

@ -14,7 +14,7 @@ const (
)
fn main() {
app := &App{
mut app := &App{
width: 800
height: 400
pass_action: gfx.create_clear_pass(0.1, 0.1, 0.1, 1.0)

View File

@ -46,13 +46,15 @@ pub fn (s System) draw() {
}
pub fn (mut s System) reset() {
for p in s.pool {
for i in 0..s.pool.len {
mut p := s.pool[i]
p.reset()
p.life_time = 0
}
for p_ in s.bin {
p_.reset()
p_.life_time = 0
for i in 0..s.bin.len {
mut p := s.pool[i]
p.reset()
p.life_time = 0
}
}