Login  Register

Re: glTexParameteri flags GL_INVALID_ENUM

Posted by Jarl Haggerty on Mar 15, 2011; 9:28am
URL: https://forum.jogamp.org/glTexParameteri-flags-GL-INVALID-ENUM-tp2680988p2681071.html

Whenever I resort to posting a question on the internet I'm sure I can't get any further on my own, but I just figured out my problem.  In my program I save the resolution I want in a(an?) xml file, then I iterate over all my available display modes and pick a display which matches the resolution I want, with no regard for the bit depth of the display mode.  As a result, when I ran my program in fullscreen I had a bit depth of 8 bits.  Selecting a display mode which gives the resolution I want and the maximum bit depth solves my problem.