I’m trying to load a texture and to generate a texture object with it, but my code stops execution and says during runtime that I have a stack overflow. The debugger tells that the problem is in the line in which I call glTexImage2D with the texture.
It has been nearly 20 years since I last programmed in Fortran (Fortran77) so I’m not up to speed with the syntax anymore, but it looks like your problem may be the texture width and height. Those must always be a power of 2, and I can’t tell that they always are from what is shown.
I also thought that it could be the width and height of the texture, but both are powers of 2. It is very strange because I have also written other codes with textures and I allways have the same problem <?>.