I am having a problem using heightmaps to create terrains in DarkGDK. my problem is this: when i render the terrain, there is a flat space emerging from the bottom and left sides. This thows off my texture as the new terrain areas cause the textures to be stretched to areas that should not exist. It is better described with pictures;
my hightmap for example is one like this.
in my program, it is rendered as if i used this heightmap instead:
It always happens, with any image I have used. I would like to know what is wrong and / or how i can correct this.