1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

examples: fix unused variable warning in examples/sokol/fonts.v

This commit is contained in:
Delyan Angelov 2020-06-15 15:40:42 +03:00
parent cadde3e9f0
commit 91df872c36

View File

@ -4,7 +4,6 @@ import sokol.gfx
import sokol.sgl
import sokol.sfons
import os
import time
struct AppState {
mut:
@ -60,14 +59,12 @@ fn init(mut state AppState) {
}
fn frame(user_data voidptr) {
t := time.ticks()
mut state := &AppState(user_data)
state.render_font()
gfx.begin_default_pass(&state.pass_action, sapp.width(), sapp.height())
sgl.draw()
gfx.end_pass()
gfx.commit()
// println(time.ticks()-t)
}
fn (state &AppState) render_font() {