Closed rishabh-bector closed 6 years ago
The issue was me using a 64 bit OS without specifying 32 bit integers which OpenGL expects. Full explanation here: https://stackoverflow.com/questions/51582064/golang-opengl-element-buffer-object-not-rendering-properly
Hi there, I'm trying to render a simple rectangle using go-gl using an element buffer object. The following is a part of my code:
I have a simple vertex and fragment shader set up as well. Running this in wireframe mode gives me something which looks like this:
When in reality it should give me a full rectangle made up of 2 triangles.
If you can get back to me as soon as possible, it would be really helpful.