Aeva / m.grl

Midnight Graphics & Recreation Library
http://mgrl.midnightsisters.org
GNU Lesser General Public License v3.0
44 stars 3 forks source link

preprocessor macros should be hoisted #220

Open Aeva opened 8 years ago

Aeva commented 8 years ago

The lighting demo prints a warning, because #extension GL_EXT_draw_buffers : require appears halfway through the shader.

Instead, preprocessor tokens like that should be hoisted. This might be a bit involved to do, as ones in includes should be hoisted as well.