fix to mipmap generator and specularbitmaptexture