Can you post a minimum working example with all types declared. We can't reproduce your issue because:
* BufferTarget is undeclared * BufferDataUsage is undeclared * glBufferData is undeclared * GLenum is undeclared * GLsizeiptr is undeclared Alternatively post an example with Nim core types that exhibits the same issue.