fix #define issue with mipmaps