Login  Register

Re: Texture with nearest filtering

Posted by Marco on Oct 24, 2019; 3:45pm
URL: https://forum.jogamp.org/Texture-with-nearest-filtering-tp4040117p4040120.html

I found the solution:

the calls:

gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MAG_FILTER,GL2.GL_NEAREST);
gl.glTexParameteri(GL2.GL_TEXTURE_2D,GL2.GL_TEXTURE_MIN_FILTER,GL2.GL_NEAREST);

must be put after:

gl.glBindTexture(GL2.GL_TEXTURE_2D, t);