fixes #2829 ofVbo custom attribute stride

addresses an issue (#2829) where the buffer length would be calculated wrongly if stride for a custom ofVbo attribute was set to 0.

Based on @cinghiale's suggestion, and the ensueing discussion.

Signed-off-by: tgfrerer <tim@poniesandlight.co.uk>