Texture fix: generate power of two textures if mipMap needs to be generated.