更新时间:2022-12-22 20:33:12
It looks like the texture is getting padded out to the nearest power of two. There are two solutions here:
1.0f
to textureWidth/nearestPowerOfTwoWidth
and textureHeight/nearestPowerOfTwoHeight
.There might also be some specific LWJGL method to allow for non-power-of-two textures, look into that.