Re: unpack pixel_buffer_object must be bound to call this method
Posted by nyholku on Nov 27, 2017; 8:34am
URL: https://forum.jogamp.org/unpack-pixel-buffer-object-must-be-bound-to-call-this-method-tp4038328p4038333.html
Hi,
thanks for replying.
In the code version I showed I call it nowhere, but I've tried various ways of doing this like:
Like below, neither one of the commented out bind attempts makes no difference:
gl.glTexParameteri(GL2.GL_TEXTURE_2D, GL2.GL_TEXTURE_MIN_FILTER, GL2.GL_LINEAR);
//tex.bind(gl);
//gl.glBindTexture(GL2.GL_TEXTURE_2D, tex.getTextureObject());
gl.glTexImage2D(GL2.GL_TEXTURE_2D, 0, GL2.GL_RGBA, 128, 128, 0, GL2.GL_RGBA, GL2.GL_UNSIGNED_BYTE, tex.getTextureObject());