mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix hot code reloading for GUI example bounce on linux: works when compiled with 'v -live -sanitize bounce.v' .
It crashes with SIGSEGV, when -sanitize is not given. Also thirdparty/glad/glad.o should be build with -fPIC .
This commit is contained in:

committed by
Alexander Medvednikov

parent
3b1964e9df
commit
60ad97c4fb
@@ -1,5 +1,5 @@
|
||||
// Build this example with
|
||||
// v -live bounce.v
|
||||
// v -live -sanitize bounce.v
|
||||
module main
|
||||
|
||||
import gx
|
||||
@@ -64,7 +64,7 @@ const (
|
||||
W = 50
|
||||
)
|
||||
|
||||
//[live] TODO segfaults
|
||||
[live]
|
||||
fn (ctx &Game) draw() {
|
||||
ctx.vg.draw_rect(ctx.x, ctx.y, W, W, gx.rgb(0, 0, 255))
|
||||
}
|
||||
|
Reference in New Issue
Block a user