Re: glCopyTexImage2D error - GL_INVALID_ENUM
Posted by jmaasing on Jan 19, 2014; 10:44pm
URL: https://forum.jogamp.org/glCopyTexImage2D-error-GL-INVALID-ENUM-tp4031251p4031253.html
A guess is that you need to tell GL about the mip map levels. After bind texture
gl.glTexParameteri(GL4.GL_TEXTURE_2D, GL4.GL_TEXTURE_BASE_LEVEL, 0);
gl.glTexParameteri(GL4.GL_TEXTURE_2D, GL4.GL_TEXTURE_MAX_LEVEL, 0);
The default for GL is to assume that textures have mip maps and that might trip you up. I don't recall the error I got before I added those lines but it might have been invalid enum.