[LWJGL] Odd edges on my textures when NOT using GL_NEAREST

I’ve just started toying around with LWJGL lately, and I’m trying to resolve this odd glitch that appears with my textures.
I’m doing everything using tilemaps, and when I set the mode of the textures to something like GL_NEAREST_MIPMAP_LINEAR or something similar, I get this:

Any help?

When you are using GL_NEAREST_MIPMAP_LINEAR without creating mipmaps it works like GL_LINEAR.

Shifting your texture coordinates by 0,5 pixel should fix the problem (use center of each pixel, for example when you have 2X2 texture 0,0 pixel will be at 0.25, 0.25 OpenGL coordinate).

Works like a charm, thanks.

Actually, nope.

Found this happening:

How do you setup your OpenGL and texture loading?

It’s okay, I eventually fixed it. I did it the lazy way, but it works.

Do you mind posting your solution? It might be interesting to others.

Stopped using tile-maps.

Everybody in the crowd shrieks.