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

re-write $if os { and fix GCC segfaults on compilation

This commit is contained in:
Alexander Medvednikov
2019-06-24 13:51:11 +02:00
parent e604d5e2c8
commit b13f233521
4 changed files with 58 additions and 43 deletions

View File

@ -239,9 +239,9 @@ fn (ctx &GG) draw_rect2(x, y, w, h float, c gx.Color) {
ctx.shader.set_int('has_texture', 0)
// 4--1
// 3--2
#ifdef linux
$if linux {
// y += h
#endif
}
vertices := [
x + w, y, 0,
x + w, y + h, 0,