treeform / boxy

2D GPU rendering with a tiling atlas.
MIT License
102 stars 7 forks source link

newline after #version #65

Open add-IV opened 10 months ago

add-IV commented 10 months ago

My system expects a newline directly after the #version directive. This might be Windows-specific. The example fails with:

<pathto>\boxy\src\boxy\glsl\410\atlas.frag: ERROR: 0:1: '#version' : bad profile name; use es, core, or compatibility
ERROR: 0:1: '#version' : bad tokens following profile -- expected newline
ERROR: 0:1: '' : compilation terminated
ERROR: 3 compilation errors.  No code generated.

Changing

#version 410 // Highest version on Mac.

to

#version 410
// Highest version on Mac.

in both "atlas.frag" and "mask.frag" fixes it

add-IV commented 10 months ago

66