haskell-opengl / OpenGL

Haskell bindings to OpenGL
http://www.haskell.org/haskellwiki/OpenGL
BSD 3-Clause "New" or "Revised" License
147 stars 26 forks source link

`activeAttribs` / `activeUniforms`: 'Stack Space Overflow' when no Attribs/Uniforms in Shader #39

Closed MaxDaten closed 11 years ago

MaxDaten commented 11 years ago

while no attributes in shaders are not so common, with no uniforms the call of activeUniformsresults in a 'Stack Space Overflow'. This is because of an nasty GLuint overflow here: https://github.com/haskell-opengl/OpenGL/blob/master/Graphics/Rendering/OpenGL/GL/Shaders/Variables.hs#L154