LWJGL Forum

Programming => OpenGL => Topic started by: janr on April 23, 2021, 09:52:18

Title: Texture has weird "green" lines
Post by: janr on April 23, 2021, 09:52:18
Hello,
I want to render this texture: (https://i.ibb.co/pxcfn17/case-background.png).

When I render it using "GL_LINEAR" as the MAG_FILTER and GL_CLAMP as the GL_TEXTURE_WRAP_S and GL_TEXTURE_WRAP_T, it looks like this:
(https://i.ibb.co/TKc1SVp/Bildschirmfoto-2021-04-23-um-11-50-53.png)

There are little green and little gray lines near the edges of the texture.

Why does this happen?

Best regards,
Jan
Title: Re: Texture has weird "green" lines
Post by: Electronics Boy on May 03, 2021, 06:29:19
Hey,

Can you please post your code so that we can go through it and see the problem? You can only send the class for Texture loading, or all the code on github or similur platform.

Regrads,
Electronics boy(Nikunj)