Login  Register

Re: Error: buffer for target not bound

Posted by gouessej on Aug 13, 2016; 10:20pm
URL: https://forum.jogamp.org/Error-buffer-for-target-not-bound-tp4037061p4037062.html

Hi

Please provide a SSCCE so that we can clearly identify the culprit.

I had no such problems when porting my game from JOGL 1.1.1 to JOGL 2 whereas it heavily uses VBOs but I don't use glBindFramebuffer. In my humble opinion, you still have to bind a buffer (not a frame buffer) before calling glBufferData. You should use glGenFramebuffers with glBindFramebuffer and glGenBuffers with glBindBuffer. In my humble opinion, it luckily worked with JOGL 1.1.1 not because it is an ancient version but because you were lucky enough to get a buffer name valid as a frame buffer name too.
Julien Gouesse | Personal blog | Website