SFML/SFML.Net

GLSL Bool Vector Types Maybe Mismatched With CSFML

charleyah opened this issue · 2 comments

The following PInvoke methods use the bool vector types and I believe won't actually work.

  • sfShader_setBvec2Uniform
  • sfShader_setBvec3Uniform
  • sfShader_setBvec4Uniform

All Bvec types in C# use bool which is 1-byte and in CSFML they are sfBool which is 4-bytes. While this has never noted to be a problem with bool pinvoke parameters, it has been an issue in the past for data structures #166. I haven't used shaders in SFML.Net so I haven't confirmed this but i'm pretty confident its an issue.

Just tested it, yes it is an issue. I'm working on a fix right now

Fixed with #217