Code: Select all
gl.GenerateMipmap("!" .. textureID)
Spring.SetMapSquareTexture(x, z, textureID)
But this fails: the custom texture is applied but is still grainy. What could be wrong?
- gl.GenerateMipmap needs some GL extension. But I was able to call it - the call would be nil (and error out when called) if I didn't have the extension.
- the "!" denotes Lua textures and is expected by gl.GenerateMipmap so I don't think it's the problem either.
- swapping the order of the two callouts does nothing.