Hey,
I have a problem that whenever the “reshape” method is called on my GLJPanel. I know for sure it’s when reshape is called since I put a print statement in that method (not to mention i can actually watch the JPanel being reshaped…)
Any textures I have on the screen will instantly disappear, leaving just white space (the clear color) on the screen where they were (making some lines look like I have GL_LINE_STIPPLE activated, actually). I can then have them drawn again (by pushing the button that originally drew them to the screen) but even in this case some of the textures aren’t redrawn, and, nonetheless, when I reshape again it deletes them all anyway. This is really messy and quite the disaster, as the functionality that causes the re-shaping of the GLJpanel is absolutely essential to the program I’m writing.
Is there any reason why reshape() would be unbinding textures, not letting them be redrawn properly, etc…?
Thank you very much!