Daemon
Daemon copied to clipboard
Shaders with non-empty macros throw off #insert line numbers
https://github.com/DaemonEngine/Daemon/blob/0407cd81ae90fa7e1430f786a8b7f856552f311d/src/engine/renderer/gl_shader.cpp#L1037 receives the shader without any macros set, so #insert gets incorrect line count if any macros are set.
A quick and dirty fix would be to add 3 commented out lines for every disabled macro, and then just add 3 lines to the count for #insert.
@illwieckz Any thoughts on the above? Maybe another approach?