Did you read the code I just posted? There is no need to add support for 6x texture scaling, my code snippet just makes it use 5x texture scaling for anything above or equal to 5x resolution, instead of ignoring it like your code does.