Fixed bug in fragment shaders in mipmap level computation.