Programming Thread

Viewing single post

Started by the-pi-guy, Mar 13, 2016, 10:39 PM

previous topic - next topic

the-pi-guy

Sep 11, 2019, 01:28 AM Last Edit: Sep 11, 2019, 01:29 AM by the-pi-guy
How long do you expect till you get hello triangle running?
Only took me 3 weeks.   :(

So the issue was that I was using a pointer to set up my variable length arrays.  So then when I foolishly used sizeof during the call to copy the array to the buffer, it was taking the size of the pointer instead of the size of the array.  
So then there wasn't enough information for a color or vertex.

That was my stupid mistake.