After I added the last 2 lines with CLAMP_TO_EDGE my texture shows as one color like if I was using glColor. I have checked for glErrors but didnt find any. Im using mipmaped pngs as textures. If I remove the two lines everything works perfect again. Except for the seams between the textures I want to minimize using CLAMP_TO_EDGE.

GL12 is supported on my comp, but I should mention that its a laptop with a graphicscard that dont support shaders for instance. I have an exe-file from a tutorial on how to make a skybox and such that uses CLAMP_TO_EDGE and that file works perfect when executed. so CLAMP should work. So Im quite puzzled about why this happens.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org