cginternals / globjects

C++ library strictly wrapping OpenGL objects.
https://globjects.org
MIT License
539 stars 59 forks source link

Missing newlines in shader source composition #288

Closed j-o closed 9 years ago

j-o commented 9 years ago

Currently, Shader::getSource() and Shader::source()->string() may return different results when the associated source is a CompositeStringSource, due to differently implemented composition: The shader implementations concatenate all elements without newlines, while the CompositeStringSource puts newlines in between parts.

What is the benefit of passing all source parts separately to glShaderSource, anyway?