Good day, everyone!
My knowledge is very modest, but very necessary and I want to implement a shadow in JOGL, I found (in my opinion) pretty simple implementation in delphi, and just tried to port to, the fact is that when initialization error goes, wrong ENUM value when calling a method glTexParameteri and glTexGeni in startInit(GL2 gl). I can't find a solution to my problem, not well-versed in openGL and badly know English, as you can see.
P.S. thanks in Advance to all, and I apologize for my English.
http://pastebin.com/fnamve4P(I apologize for comments on Russian)