Re: Reading from PBO fails
Posted by adi on Mar 14, 2017; 11:54pm
URL: https://forum.jogamp.org/Reading-from-PBO-fails-tp4037767p4037789.html
YES, with framebuffers, without PBO, it works correct, e.g.
gl.glBindFramebuffer(GL4.GL_FRAMEBUFFER, framebufId[0]);
gl.glFramebufferTexture2D( GL4.GL_DRAW_FRAMEBUFFER, GL4.GL_COLOR_ATTACHMENT0, GL4.GL_TEXTURE_2D, texId[0], 0);
gl.glReadPixels( ........);
gl.glBindFramebuffer(GL4.GL_FRAMEBUFFER, 0);
The other approach with opengl 4.5 should be also work, or are PBO's deprecated from version 4.5?