I found out what caused the image to reload, it was its non power of two dimensions. In any case this commit avoids a full recalculation of mipmaps in this case which is desired.<br><br>While at I think it would be a good idea to add mipmap generation through glGenerateMipmaps and check for non-power-of-two support so that non-power-of-two images can be sent to the GPU without scaling. It can save some calculation for certain.<br>