use the dsa version of generate mipmap