Login  Register

Re: Texture NPOT

Posted by gouessej on Sep 14, 2015; 11:15am
URL: https://forum.jogamp.org/Texture-NPOT-tp4035280p4035294.html

You have to call GL.glEnable(GL2.GL_TEXTURE_RECTANGLE_ARB), or you can use GL_ARB_texture_non_power_of_two:
http://stackoverflow.com/a/11363905

You should have read the documentation:
" Further more, GL_ARB_texture_rectangle (RECT) will be attempted on OSX w/ ATI drivers. If NPOT is not available or RECT not chosen, the Texture class will simply upload a non-pow2-sized image into a standard pow2-sized texture (without any special scaling)."
http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/util/texture/Texture.html
Julien Gouesse | Personal blog | Website