I couldn't find anything about my issue online, maybe because I don't know how to express my question.
I'm using a tilemap to use different textures during the same draw call. But when I enable for example linear filtering instead of using nearest, my textures start to look weird. The filtering seems to take pixels from outside the specified area (using texture coordinates)...
Is there an easy solution for this that doesn't involve hacking? Maybe an option to specify that it will use the texels from the other side of the specified region instead of the texel outside of the specified texture "range"?