First, thank's for you work!
I try to implement sprite stacking in my lang (forth related), I can use opengl but for now I use sdl_rendergeometry for write the sprite layers (perhaps this is the problem, I don't know).
when the camera is near the floor, the layers are almost flat, then the borders of texure are not correct.
Have you ever faced that problem?