Hi
I'm having some strange issues with glMapBufferOES
my command
Code: Select all
framedata = (unsigned char*)glMapBufferOES(GL_ARRAY_BUFFER, GL_WRITE_ONLY_OES);
always returns null, I do know that glMapBufferOES is an extension and I have checked that there is a proc address for it,
Code: Select all
glMapBuffer = (PFNGLMAPBUFFEROESPROC)eglGetProcAddress("glMapBufferOES");
which returned a value.. but whether I call it via a proc address or direct, the framedata is never set and I cannot proceed!
Anyone know why? Am I missing an init step somewhere? I have the bcm_host_init(); at the start of my code which should fire up all the BCM specific stuff?
Very old computer game programmer, now teaching very young computer game programmers, some very bad habits.
Wrote some book about coding Pi's and SBC's, it's out now...go get it!
http://www.scratchpadgames.net/