Texture loading problem.

I have a function that load bitmap for texture. Everything work fine for simple image like something that is drawn using Paint. But when I load something like picture, only lower part(1/4) of the image is successfully loaded. And the format is the same, 24 bit bitmap.

Are your textures different sizes?

Are your textures the power of 2 in X and Y … ( 128x64 256x512 etc )


My textures size is 64x64 and they’re all same size.