added mipmapping to opengl backend